User Tools

Site Tools


bundlecontext_in_web_app

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
bundlecontext_in_web_app [2015/12/02 13:14]
mihael
bundlecontext_in_web_app [2015/12/02 13:14] (current)
mihael
Line 5: Line 5:
   * The BundleContext is available from the ServletContext attributes (OSGI Enterprise Spec chapter "128.6 Interacting with the OSGi Environment"​):​ ''​BundleContext ctxt = (BundleContext)   * The BundleContext is available from the ServletContext attributes (OSGI Enterprise Spec chapter "128.6 Interacting with the OSGi Environment"​):​ ''​BundleContext ctxt = (BundleContext)
 servletContext.getAttribute("​osgi-bundlecontext"​);''​ servletContext.getAttribute("​osgi-bundlecontext"​);''​
-  * FrameworkUtil.getBundle(class).getBundleContext()+  * ''​FrameworkUtil.getBundle(class).getBundleContext()''​
  
 {{tag>​devel java osgi}} {{tag>​devel java osgi}}
  
bundlecontext_in_web_app.txt ยท Last modified: 2015/12/02 13:14 by mihael