Book Image

Apache Karaf Cookbook

By : Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler
Book Image

Apache Karaf Cookbook

By: Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler

Overview of this book

Table of Contents (17 chapters)
Apache Karaf Cookbook
About the Authors
About the Reviewers

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 for the build:

[INFO] --- cxf-codegen-plugin:2.7.4:wsdl2java (generate-sources) @ chapter5-recipe4 ---

The preceding line indicates that the codegen plugin for CXF has been run and has generated the code from the WSDL defined in the pom.xml file. The...