Skip to Main Content
APACHE KARAF COOKBOOK
book

APACHE KARAF COOKBOOK

by Achim Nierbeck, Jamie Goodyear
August 2014
Beginner to intermediate content levelBeginner to intermediate
260 pages
5h 31m
English
Packt Publishing
Content preview from APACHE KARAF COOKBOOK

Building an application with custom HttpContext with Apache Karaf

All previous recipes have covered how to register servlets and filters, and all from within the same bundle bound to a default HttpContext. If no other HttpContext is defined, DefaultHttpContext is created while registering a servlet or resource. With this recipe, we will work with a custom HttpContext.

Getting ready

As this recipe is a specialization of the previous recipes, you'll find the source code for it in the Building a Http Service with the Whiteboard pattern in Apache Karaf recipe. As usual, the recipe demands the successful installation of the http-whiteboard feature; how this can be achieved is explained in the Installing extended Http Service in Apache Karaf recipe. The ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Instant OSGi Starter

Instant OSGi Starter

Jamie Goodyear, Johan Edstrom
Learning Docker - Second Edition

Learning Docker - Second Edition

Pethuru Raj, Vinod Singh, Jeeva S. Chelladhurai

Publisher Resources

ISBN: 9781783985081Supplemental Content