7.3. Deploying the Apache Camel Route
RealWebServicesBeanbean) is ready for deployment into the OSGi container.
Steps to deploy the Camel route
Build the demonstration
CamelInstallDir/examples/camel-example-cxf-proxy, and enter the following command:
mvn install -Dmaven.test.skip=true
Start the OSGi container
Install the required features
camel-cxffeature, which defines the bundles required for the Camel/CXF component, is not installed by default. To install the
camel-cxffeature, enter the following console command:
JBossFuse:karaf@root> features:install camel-cxf
camel-httpfeature, which defines the bundles required for the Camel/HTTP component. To install the
camel-httpfeature, enter the following console command:
JBossFuse:karaf@root> features:install camel-http
Deploy the bundle
camel-example-cxf-proxybundle, by entering the following console command:
JBossFuse:karaf@root> install -s mvn:org.apache.camel/camel-example-cxf-proxy/2.17.0.redhat-630xxx
install, rather than using hot deploy, so that you can see the bundle output on the console screen.
mvnURL handler, see section "Mvn URL Handler" in "Deploying into Apache Karaf" for details of how to set it up.
Check the console output
JBossFuse:karaf@root> Starting real web service... Started real web service at: http://localhost:9081/real-webservice