Red Hat JBoss Fuse 6.3.0 projects to demo the usage of the camel CXFRS endpoints in order to expose or consume RESTful services running on Apache Karaf containers (standalone or Fabric8-managed cluster)
- ipservice_cxfrs_server_swaggerv1 (
swagger v1.2
) - ipservice_cxfrs_server_swaggerv2 (
swagger v2.0
) - oidcsecured_ipservice_cxfrs_server_swaggerv2 (
swagger v2.0
and secured with OpenID Connect protocol) - ipservice_cxfrs_client
- The Red Hat JBoss Fuse 6.3.0 Rollup 19 (v6.3.0.redhat-515) BOM is used in this project. So make sure you use the same patch version or adapt to your current patch version of Red Hat JBoss Fuse 6.3.0
- This project is configured to use a repository manager.
Thus, the parent POM points to my private Sonatype Nexus Repository OSS.
My Sonatype Nexus Repository OSS is configured to proxy the following
Red Hat maven repositories in addition to Maven Central:
- https://maven.repository.redhat.com/ga
- https://maven.repository.redhat.com/earlyaccess/all
- Make sure you configure the parent POM to either point to your own maven repository manager or directly to Maven Central and the two Red Hat maven repositories above.
- Various PID properties need to be adjusted according to your environment:
- either within the projects blueprint for local tests with
camel:run
maven goal - either within the parent PID and the following PID files for container runtime (Apache Karaf standalone or managed by Fabric8) tests according to the tested module:
- either within the projects blueprint for local tests with
All four modules can be built from the parent project (jbossfuse-cxfrs-demo).
Please follow the instructions below according to the target deployment type: standalone or in a fabric8-managed cluster
$ cd jbossfuse-cxfrs-demo
$ mvn clean install
$ cd jbossfuse-cxfrs-demo
$ mvn clean package fabric8:zip install
Five fabric8 profiles are generated:
org-jeannyil-fuse-cxfrs-demo
: the fabric8 parent profile for all the modulesorg-jeannyil-fuse-cxfrs-demo-ipservice_cxfrs_client
: the ipservice_cxfrs_client module fabric8 profileorg-jeannyil-fuse-cxfrs-demo-ipservice_cxfrs_server_swaggerv1
: the ipservice_cxfrs_server_swaggerv1 fabric8 profileorg-jeannyil-fuse-cxfrs-demo-ipservice_cxfrs_server_swaggerv2
: the ipservice_cxfrs_server_swaggerv2 fabric8 profileorg-jeannyil-fuse-cxfrs-demo-oidcsecured_ipservice_cxfrs_server_swaggerv2
: the oidcsecured_ipservice_cxfrs_server_swaggerv2 fabric8 profile
In order to import these profiles in a Red Hat Fuse fabric8-managed cluster:
- Log into the Red Hat Fuse fabric8 terminal and import the generated
org-jeannyil-fuse-cxfrs-demo
fabric8 parent profile:$ fabric:profile-import mvn:org.jeannyil.fuse/cxfrs-demo/1.0.0-SNAPSHOT/zip/profile
- All the four modules fabric8 profiles will be automatically imported:
$ fabric:profile-list | grep jeannyil org-jeannyil-fuse-cxfrs-demo default feature-camel feature-camel-jms feature-cxf org-jeannyil-fuse-cxfrs-demo-ipservice_cxfrs_client org-jeannyil-fuse-cxfrs-demo org-jeannyil-fuse-cxfrs-demo-ipservice_cxfrs_server_swaggerv1 org-jeannyil-fuse-cxfrs-demo org-jeannyil-fuse-cxfrs-demo-ipservice_cxfrs_server_swaggerv2 org-jeannyil-fuse-cxfrs-demo org-jeannyil-fuse-cxfrs-demo-oidcsecured_ipservice_cxfrs_server_swaggerv2 org-jeannyil-fuse-cxfrs-demo
Deployment and test instructions for each module can be found in its README accordingly: