users@jsr311.java.net

Re: ApplicationConfig and OSGi

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 24 Jul 2008 15:55:14 +0200

Hi Reto,

Reto Bachmann-Gmür wrote:
> Hello
>
> Trying to use jax-rs in an OSGi environment we imagine bundles
> providing web applications by exposing instances of ApplicationConfig.
> However the jsr311 implementation residing in another bundle cannot
> instantiate the classes of the bundle providing the application.
>

I know very little about the technical aspects of OSGi but would not the
same problem occur for a web application bundle referring to a servlet
class in the web.xml that needs to be instantiated by servlet
implementation residing in a different bundle?

And also for Web service endpoints, EJBs and JAXB beans when unmarshalling.

Paul.

> Could ApplicationConfig be fixed to return factories instead of
> instances of Class?
>
> Cheers,
>
> Reto
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109