User Tools

Site Tools


bundlecontext_in_servlet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bundlecontext_in_servlet [2014/02/12 09:38] (current)
mihael created
Line 1: Line 1:
 +====== 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"​);​
 +  ​
 +{{tag>​osgi devel java}}
bundlecontext_in_servlet.txt ยท Last modified: 2014/02/12 09:38 by mihael