Camel Example
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.
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...
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