You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bob Paulin (JIRA)" <ji...@apache.org> on 2014/04/12 05:46:16 UTC

[jira] [Created] (FELIX-4483) osgi-bundlecontext is not available in init methods

Bob Paulin created FELIX-4483:
---------------------------------

             Summary: osgi-bundlecontext is not available in init methods
                 Key: FELIX-4483
                 URL: https://issues.apache.org/jira/browse/FELIX-4483
             Project: Felix
          Issue Type: Bug
          Components: HTTP Service
    Affects Versions: http.jetty-1.0.1, http.jetty-1.2.0
            Reporter: Bob Paulin
            Priority: Minor


This current ordering in the JettyService#doExecute method does not allow the osgi-bundlecontext to be available in Servlet and Filter init classes:

1) Get Bundle
2) Start WebAppBundleContext
3) Create Service Properties
4) Register Service
5) Set osgi-bundlecontext Servlet Context

Propose changing it to the following order to allow for the context to be used:

1) Get Bundle
*2) Set osgi-bundlecontext Servlet Context*
3) Start WebAppBundleContext
4) Create Service Properties
5) Register Service it in the




--
This message was sent by Atlassian JIRA
(v6.2#6252)