I traced ServletContext in diffrent bundles , seems it has been shared. In org.apache.felix.http.base.internal.DispatcherServlet this.controller.register(getServletContext()); will get only ServletContext which provided by jetty. put it in HttpServiceFactory
When servlet register, retrived this servletContext from HttpServiceFactory. I think the servlet context has been shard , at least in my application. Tommy Wang On Sun, Jan 3, 2010 at 3:25 AM, Sten Roger Sandvik (JIRA) <j...@apache.org>wrote: > > [ > https://issues.apache.org/jira/browse/FELIX-1963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel] > > Sten Roger Sandvik updated FELIX-1963: > -------------------------------------- > > Issue Type: New Feature (was: Bug) > > > Add possibility to share ServletContext between bundles > > ------------------------------------------------------- > > > > Key: FELIX-1963 > > URL: https://issues.apache.org/jira/browse/FELIX-1963 > > Project: Felix > > Issue Type: New Feature > > Components: HTTP Service > > Affects Versions: http-2.0.4 > > Reporter: Sten Roger Sandvik > > Assignee: Sten Roger Sandvik > > Fix For: http-2.0.6 > > > > > > Check out the possibility to share ServletContext between bundles. If > ServletContextManager is global instead of local to each bundle then it > chould be done. If you want to share ServletContext each HttpContext must > implement equals method that ensures equality. > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > >