[jboss-dev-forums] [Design of the JBoss EJB Container] - Re: JBAS-3428 - Duplication on Proxies

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Jul 26 12:16:55 EDT 2006


"scott.stark at jboss.org" wrote : 
  | The reference to the parent should not hold anything as the proxy is created by the child class loader. Unless there is an outside reference to the proxy, the proxy and the class loader created by MBeanProxyExt would be available for gc.

If there is a reference to the created proxy, the classLoader is referenced anyway.
The child classLoader (proxyInstance.getClass().getClassLoader()) will have a reference to the classLoader passed to the constructor. (parent classLoader).

So, you still need to release the reference to the created proxy if you want to not hold redeployments. And if you still need to clean the reference why not just use MBeanProxy.get()?



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

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



More information about the jboss-dev-forums mailing list