[jboss-dev-forums] [Design of EJB 3.0] - Re: EJB3 Classloader Leak (EJBTHREE-1442)

ALRubinger do-not-reply at jboss.com
Thu Sep 11 04:11:17 EDT 2008


Brian's correct; my switching over to the TCCL in BaseSessionProxyFactory.createProxyBusiness() leads to a CL Leak.  But I'm not convinced that this is the evil piece.

I *need* this code, and web injection fails without it (see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=141165 for an explanation of why).

However, this TCCL usage seems awfully hacky to be in EJB3 Proxy; I'd expect to always use the Container CL to generate proxies.  This unfortunately will collide when a web CL needs injection and has previously defined the business interfaces with its own CL (which by Servlet Spec must look to itself *first*, and parent delegation second).

Also interesting is Ron's last post, which I'll look at tomorrow.

S,
ALR


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

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



More information about the jboss-dev-forums mailing list