...
Apache Camel can be used to provide Enterprise Integration Patterns within JBI.
This example creates a Camel Service Unit and puts it into a Service Assembly for deploying a some Camel routes and EIP patterns in JBI.
You can find the example in the servicemix/samples/camel area.
Running the Example with jbi:servicemix
To run the example using an embedded ServiceMix container inside Maven you can use the Maven JBI plugin.
Code Block |
---|
cd samples/camel
mvn install
cd camel-sa
mvn jbi:servicemix
|
This should build the Camel Service Unit (in samples/camel/camel-simple-su) and then deploy the Service Assembly in ServiceMix.
Deploying the Example in ServiceMix
Using this option we'll first need to Run ServiceMix, for example by running the following from a binary distro...
Code Block |
---|
bin/servicemix
|
Now we build the Service Assembly
Code Block |
---|
cd samples/camel
mvn install
|
Now we can deploy the Service Assembly using the Maven JBI plugin
Code Block |
---|
cd camel-sa
mvn jbi:projectDeploy
|
Alternatively you could just copy the Service Assembly jar into the hotdeploy directory of the running ServiceMix container