On Thu, Jan 8, 2009 at 2:45 AM, Pruitt, Byron S <steve.pru...@hp.com> wrote:
> I'm developing an application with several bundles.  Some of them use the 
> http service as the api for the outside world.
> I haven't found a good pattern for integrating Servlets with the rest of the 
> OSGi framework.  After a request is received, I want to invoke OSGi services, 
> etc.  I have experimented with singletons or initializing the Servlet with 
> objects that "bridge" the Servlet to the services.
>
> Is there something better?  Am I missing something obvious?

Have you seen if the OSGi Http Service Specification meets your requirements?

If not, take a look at the Servlet Bridge by Simon Kaegi.

Also, you can embed Felix so that framework extensions, which are
loaded from your servlet with the embedding, can expose and use
services in the Felix instance. I guess Equinox can do the same, but I
don't know the details.


Cheers
Niclas
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to