Building and deploying a Camel CXF web service in Karaf

In the previous recipe, we saw how easy it can be to deploy a RESTful service using CXF and Karaf. Now, we will explore how to deploy a WSDL first CXF endpoint using Camel. This is a good way to implement integration routes that expose web services. Uninstall the recipe2 code before going ahead with this recipe

Getting ready

The example code for this recipe is in the chapter5-recipe4 example of the code bundle. More than likely, you have already built the code, but just in case, go ahead and run the mvn clean install command against the chapter5 folder. This will build and move the bundle to the Maven repository for deployment in Karaf.

Notice that there is the following line in the console ...

Get Apache Karaf Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.