dev@glassfish.java.net

Re: Thoughts on Threadpool handling of context ClassLoader

From: Ken Cavanaugh <Ken.Cavanaugh_at_Sun.COM>
Date: Fri, 27 Apr 2007 11:46:08 -0700

Lloyd L Chambers wrote:
> Factor out the thread pool alone so that any client can use it, not
> just the ORB? And initialize it in its own thread at startup (always)?
>
No re-factoring needed in the ORB. The threadpool is independent of the
ORB. It's just like any other utility
class in appserv-rt.jar. In fact, several other parts of the app server
share this same threadpool.
However, the threadpool startup may need to be factored out of the
ORBManager code. Right now,
the threadpool is only initialized when the ORB is initialized, not at
server startup time.
But we certainly could move the threadpool initialization someplace
else, where the
context ClassLoader is guaranteed to be something that will be valid for
the lifetime of
the server VM.

I don't know anything about app server startup, so I can't do this, but
I'd be happy to work
with someone to get this done.

Thanks,

Ken.