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:50:14 UTC

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

    [ https://issues.apache.org/jira/browse/FELIX-4483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13967382#comment-13967382 ] 

Bob Paulin commented on FELIX-4483:
-----------------------------------

Patch and Integration Test included.

> 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
>         Attachments: FELIX-4483.patch
>
>
> 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)