[jboss-dev-forums] [Design of POJO Server] - Re: Classloader leak in BasicThreadPool

bstansberry@jboss.com do-not-reply at jboss.com
Thu Mar 27 15:21:06 EDT 2008


I implemented and tested this before JBW, but this statement had me concerned so I'd put this on the shelf:

anonymous wrote : If no ClassLoaderSource is injected, the TCCL will be set to null.

That's a concern because I see a lot of possible usage of BasicThreadPool outside the AS itself.  The above is a change in behavior and there's no way I can find and test every possible user of this class. Or at least I don't want to. ;-)

So, I intend to instead make it that if no ClassLoaderSource is injected, the pool doesn't mess with the TCCL -- i.e. the existing behavior continues.  We can then find the usages of BasicThreadPool in the JBoss AS codebase itself and make sure they have an appropriate ClassLoaderSource injected.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139449#4139449

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139449



More information about the jboss-dev-forums mailing list