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

Binding a web project to a specific host in Apache Karaf

With Karaf 3 and Pax Web 3, it is possible to bind a web application to a specific HTTP connector. This is a feasible solution to separate internal and external applications on the same server.

Getting ready

The sample code for this recipe is available at https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter4/chapter4-recipe8. Here, you will find a jetty.xml file at the src/main/etc location. It can be used to add an extra connector. Two extra recipes are available to show how to use this with a standard WAB file or the Whiteboard extender.

How to do it…

First of all, the server needs to be configured to support different HTTP connectors. Therefore, it is necessary to configure ...

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