Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
5.2. Examples of JBoss Fuse on EAP
$JBOSS_HOME/quickstarts/camel
directory to view the full source code of all the examples.
- Maven 3.2.3 or greater
- Java 1.7 or greater
- Red Hat JBoss Fuse 6.3
- Red Hat JBoss EAP 6.4
5.2.1. Camel ActiveMQ Link kopierenLink in die Zwischenablage kopiert!
camel-activemq
component with JBoss Fuse on EAP, to produce and consume JMS messages.
${JBOSS_HOME}/standalone/data/orders
directory and place the content to an external ActiveMQ JMS queue. A second route consumes messages from the OrdersQueue and then via a content based router, it sorts the directory of each country that are located within the $JBOSS_HOME/standalone/data/orders/processed
directory.
src/main/resources/cli
directory.
5.2.1.1. Running the Application Link kopierenLink in die Zwischenablage kopiert!
- Maven 3.2.3 or greater
- JBoss Fuse on EAP
- An ActiveMQ broker
Procedure 5.1. To run the application
- Start the application server in standalone mode.
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to build and deploy the project.
mvn install -Pdeploy
mvn install -Pdeploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2.1.2. Configuring ActiveMQ Link kopierenLink in die Zwischenablage kopiert!
5.2.1.3. Undeploy the Application Link kopierenLink in die Zwischenablage kopiert!
mvn clean -Pdeploy
mvn clean -Pdeploy
5.2.2. Camel CDI Link kopierenLink in die Zwischenablage kopiert!
camel-cdi
component with JBoss Fuse on EAP, to integrate CDI beans with camel routes.
5.2.2.1. Running the Application Link kopierenLink in die Zwischenablage kopiert!
- Maven 3.2.3 or greater
- JBoss Fuse on EAP
Procedure 5.2. To run the application
- Start the application server in standalone mode.
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to build and deploy the project.
mvn install -Pdeploy
mvn install -Pdeploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2.2.2. Configuring Camel CDI Link kopierenLink in die Zwischenablage kopiert!
camel-cdi
component:
5.2.2.3. Undeploy the Application Link kopierenLink in die Zwischenablage kopiert!
mvn clean -Pdeploy
mvn clean -Pdeploy
5.2.3. Camel JMS Link kopierenLink in die Zwischenablage kopiert!
camel-jms
component with JBoss Fuse on EAP to produce and consume JMS messages.
${JBOSS_HOME}/standalone/data/orders
directory and place the content in the OrdersQueue. A second route consumes messages from the OrdersQueue and through a content based router.
5.2.3.1. Running the Application Link kopierenLink in die Zwischenablage kopiert!
- Maven 3.2.3 or greater
- JBoss Fuse on EAP
Procedure 5.3. To run the application
- Start the application server in standalone mode.
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to build and deploy the project.
mvn install -Pdeploy
mvn install -Pdeploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2.3.2. Configuring Camel JMS Link kopierenLink in die Zwischenablage kopiert!
5.2.3.3. Undeploy the Application Link kopierenLink in die Zwischenablage kopiert!
mvn clean -Pdeploy
mvn clean -Pdeploy
5.2.4. Camel JPA Link kopierenLink in die Zwischenablage kopiert!
camel-jpa
component with JBoss Fuse on EAP to persist entities to the in-memory database.
${JBOSS_HOME}/standalone/data/customers
directory. Camel then uses JAXB to unmarshal the data to a Customer entity. However, the entity is then passed to the JPA endpoint and is persisted to the customer database.
5.2.4.1. Running the Application Link kopierenLink in die Zwischenablage kopiert!
- Maven 3.2.3 or greater
- JBoss Fuse on EAP
Procedure 5.4. To run the application
- Start the application server in standalone mode.
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to build and deploy the project.
mvn install -Pdeploy
mvn install -Pdeploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2.4.2. Configuring Camel JPA Link kopierenLink in die Zwischenablage kopiert!
camel-jpa
component.
5.2.4.3. Undeploy the Application Link kopierenLink in die Zwischenablage kopiert!
mvn clean -Pdeploy
mvn clean -Pdeploy
5.2.5. Camel Mail Link kopierenLink in die Zwischenablage kopiert!
camel-mail
component with JBoss Fuse on EAP to send and receive email.
src/main/resources/cli
directory to see the EAP mail subsystem configuration.
java:jboss/mail/
location. You can configure the server entries for SMTP and POP3 protocols.
5.2.5.1. Running the Application Link kopierenLink in die Zwischenablage kopiert!
- Maven 3.2.3 or greater
- JBoss Fuse on EAP
Procedure 5.5. To run the application
- Start the application server in standalone mode.
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to build and deploy the project.
mvn install -Pdeploy
mvn install -Pdeploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2.5.2. Configuring Camel Mail Link kopierenLink in die Zwischenablage kopiert!
camel-mail
component.
5.2.5.3. Undeploy the Application Link kopierenLink in die Zwischenablage kopiert!
mvn clean -Pdeploy
mvn clean -Pdeploy
5.2.6. Camel REST Link kopierenLink in die Zwischenablage kopiert!
/example-camel-rest/camel
are handled by the Camel REST DSL and requests made to paths >/example-camel-rest/rest
are handled by the EAP JAX-RS subsystem along with the CamelProxy.
5.2.6.1. Running the Application Link kopierenLink in die Zwischenablage kopiert!
- Maven 3.2.3 or greater
- JBoss Fuse on EAP
Procedure 5.6. To run the application
- Start the application server in standalone mode.
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to build and deploy the project.
mvn install -Pdeploy
mvn install -Pdeploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2.6.2. Configuring Camel REST Link kopierenLink in die Zwischenablage kopiert!
5.2.6.3. Undeploy the Application Link kopierenLink in die Zwischenablage kopiert!
mvn clean -Pdeploy
mvn clean -Pdeploy
5.2.7. Camel Transacted JMS Link kopierenLink in die Zwischenablage kopiert!
camel-jms
component with JBoss Fuse on EAP to produce and consume JMS messages in a transacted session.
${JBOSS_HOME}/standalone/data/orders
directory and place the content in the OrdersQueue. A second route consumes messages from the OrdersQueue, converts the message body to the Order entity and persists it.
5.2.7.1. Running the Application Link kopierenLink in die Zwischenablage kopiert!
- Maven 3.2.3 or greater
- JBoss Fuse on EAP
Procedure 5.7. To run the application
- Start the application server in standalone mode.
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
${JBOSS_HOME}/bin/standalone.sh -c standalone-full.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the following command to build and deploy the project.
mvn install -Pdeploy
mvn install -Pdeploy
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - When the server starts, navigate to the
example-camel-transacted-jms/orders
directory.
5.2.7.2. Configuring Transacted JMS Link kopierenLink in die Zwischenablage kopiert!
camel-jms
component in a transacted session.
5.2.7.3. Undeploy the Application Link kopierenLink in die Zwischenablage kopiert!
mvn clean -Pdeploy
mvn clean -Pdeploy