This is an example project for creating Apache Camel Routes on the JBoss Fuse platform that are exposed by using CXFRS
This guide assumes that you have the following installed:
An OSGI bundle can be created by running this maven command at the root of the project:
mvn clean install
The artifact will generated and stored in the target/
directory
and in your ~/.m2
repository.
Before deploying the bundle, ensure that JBoss Fuse has been configured. See Configuring JBoss Fuse
In the JBoss Fuse client, install the bundle using maven:
osgi:install -s mvn:org.bob.cxfrs/example/0.0.1-SNAPSHOT
JBoss Fuse will install the bundle from your local ~/.m2
repository.
The -s
option will start the bundle once it is installed.
See Managing OSGI Bundles for updating the bundle when changes have been made
You can view the available RESTful services by navigating to here in a web browser: http://localhost:8181/cxf
Available RESTful services:
Endpoint address: http://localhost:9000/employeeservice
WADL : http://localhost:9000/employeeservice?_wadl
Navigate to here in a web browser: http://localhost:9000/employeeservice/employees/bob
The Processor
prefixes the path param bob
with Hello world