This sample consists of two parts:
service/ - This is the CXF service packaged as an OSGi bundle.
war/ - This module creates a WAR archive containing the service module. This is for Servlet container use only, not used in OSGi deployment.
From the example parent directory (
<TalendRuntimePath>/examples/talend/tesb
), run the following command to install the example parentpom.xml
file into the local maven repomvn install --non-recursive
From the base directory of this sample, the Maven pom.xml file can be used to build and run the demo
cd camel-jmx
mvn clean install
Running this command will build the demo and create a WAR archive and an OSGi bundle for deploying the service either to servlet or OSGi containers
Start Talend Runtime container
trun.sh (on Linux)
trun.bat (on Windows)
Add camel-jmx example features URL. Type this command in Talend Runtime container:
feature:repo-add mvn:org.talend.esb.examples/camel-jmx-feature/6.5.1/xml
To install the example feature, type this command in the Talend Runtime container:
feature:install camel-jmx-service
After deploying the samples you can see the Camel MBeans and their attributes which can be monitored using the JDK's JConsole (see Monitoring Hyperic Plugins). These attributes are also included in the metrics that we will monitor with help of Nagios.