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.
There are a number of different ways to run the example...
To run the example using an embedded ServiceMix container inside Maven you can use the Maven JBI plugin.
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.
Using this option we'll first need to start ServiceMix, for example by running the following from a binary distro...
bin/servicemix |
Now we build the Service Assembly
cd samples/camel mvn install |
Now we can deploy the Service Assembly using the Maven JBI plugin
cd camel-sa mvn jbi:projectDeploy |
Alternatively you could just copy the Service Assembly jar into the hotdeploy directory of the running ServiceMix container
The Service Assembly just contains a single Service Unit, camel-simple-su, so thats where all the action is.
If you look inside samples/camel/camel-simple-su you will see...