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 a Http Service project to host in Apache Karaf

Building web applications only with the Http Service also means a reduction to servlet only services, as Http Service supports only servlets and no further web elements like filters and JSPs. With this reduced set, it is still possible to build modern web applications. For example, it just needs some JavaScript code and a servlet generating JSON to build a modern web application. Using these elements, along with OSGi, you get the perfect mixture for µ-services. The focus of this recipe, and the following ones, lies only on the usage of the Http Service; so, don't expect to create a fancy web application. After you're through, you will be able to build a single servlet application like the ...

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