dev@glassfish.java.net

Re: Thoughts on Threadpool handling of context ClassLoader

From: Ken Cavanaugh <Ken.Cavanaugh_at_Sun.COM>
Date: Mon, 30 Apr 2007 01:15:38 -0700

On Apr 29, 2007, at 11:42 PM, Sivakumar Thyagarajan wrote:

> Hi Ken
>
> As part of OnDemandServer initialization (onInitialization()), the
> common classloader is saved in the server's context
> [ServerContextImpl], for use by other containers like the EJB and
> the web container. So could you use
> ApplicationServer.getServerContext().getCommonClassLoader() to set
> as your default ThreadContextClassLoader. [note the default TCC for
> the application server is the Common ClassLoader - this is set in
> ApplicationServer.onInitialization()]
>

Great! That's even simpler and requires fewer changes.

Thanks,

Ken.