User Tools

Site Tools


bundlecontext_in_servlet

How to retrieve BundleContext in Servlet

The BundleContext instance can be retrieved via the servlet context.

HttpServletRequest request = ...
BundleContext bundlecontext = (BundleContext) request.getServletContext().getAttribute("osgi-bundlecontext");
bundlecontext_in_servlet.txt · Last modified: 2014/02/12 09:38 by mihael