users@jersey.java.net

Re: [Jersey] Jersey + OSGI Integration

From: Ari Heino <ext.ari.heino_at_tieto.com>
Date: Thu, 4 Jun 2009 00:26:48 -0700 (PDT)

Paul Sandoz wrote:
>
> Hi Ari,
>
> If you can share any code in this respect this would be most helpful
> to better support this in Jersey itself.
>
> Paul.
>
>

Sure, here's an example of bundle activator that setups a jersey servlet
with one jersey resource class and few exception mappers.

All my jersey libraries are in a separate OSGi bundle, where all the
packages from all the libraries (that come with jersey release) are exported
in the manifest. This library bundle is then set as a dependency in the
actual jersey bundle where I keep my resource classes.

http://n2.nabble.com/file/n3023292/OSGi_Example.zip OSGi_Example.zip

-- 
View this message in context: http://n2.nabble.com/Jersey-%2B-OSGI-Integration-tp3006891p3023292.html
Sent from the Jersey mailing list archive at Nabble.com.