dev@glassfish.java.net

Re: Classloading strategy for OSGi <was> Fwd: [Jersey] Jersey in Felix

From: Sahoo <Sahoo_at_Sun.COM>
Date: Tue, 02 Dec 2008 18:18:37 +0530

Paul Sandoz wrote:
> Hi,
>
> In the email below Richard is attempting to:
>
>> embed the Jersey jars within my bundle
>> and not have any of the Jersey services exported, just have the bundle
>> be a self contained module that registers a Servlet as a service to be
>> picked up by the web container.
>
>
> In the JSR-311 jar the method:
>
> javax.ws.rs.ext.RuntimeDelegate.getInstance()
>
> will attempt to obtain an instance of RuntimeDelegate by loading a
> class using the class loader returned
> from Thread.currentThread().getContextClassLoader().
>
It is not clear to me what is the question. What I can say is that it is
a Java EE platform requirement (section EE.6.2.4.7 of Java EE platform
spec) to set "application class loader" to the request processing
Thread's context class loader.

Thanks,
Sahoo