O'Reilly logo

Apache Karaf Cookbook by Heath Kesler, Johan Edstrom, Jamie Goodyear, Achim Nierbeck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building and deploying a RESTful service in Karaf

Now, let's look at how the code is assembled in order to publish a CXF endpoint in Karaf using just CXF.

Getting ready

In this recipe, we will work with the chapter5-recipe3 example from the code bundle. Uninstall the recipe2 code before going ahead with this recipe

First, install CXF as shown in the Installing Apache CXF modules in Apache Karaf recipe, and then build and deploy a sample CXF application as recipe3 in Karaf.

Go to the chapter5-recipe3 example from the code bundle and run the Maven build using the following command:

mvn clean install

This will build and install the sample applications for the chapter5-recipe3 example into the Maven repository, so we can easily install them in the Karaf ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required