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 ...

Get Apache Karaf Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.