We are using Equinox Servlet Bridge over a web container to enable OSGi. We register a DispatcherServlet to handle HTTP requests coming from consumers. Here is the issue -
I would like to use Spring both inside the bundle ( to configure Dispatcher servlet ) and outside the bundle ( to let spring manage the OSGi aspects), however I can't find a way to bridge the gap between the application contexts inside the and outside the bundles. To be specific, I would like to setup a DispatcherServlet's application context that can get services injected from the OSGi registry (outside the bundle).
If you have come across such a problem, please help.