[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 10:30:10 EDT 2006


"dimitris at jboss.org" wrote : From the top of my head, I'm sure we have plenty of places in the code we create a proxy for a single call, and throw it away. It's a bad practise.

We will have to clean these references during undeployment, or to use SoftReferences testing for Null Object.

I think the JVM doesn't make any internal references to the created proxy, what means the Proxy will released if a GC happens.

On JBoss Serialization, I created a package called PersistentReference that encapsulates such thing. It's really simple. 

If we want to cache proxies without having to worry on clearing references later maybe we should implement a similar idea.



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

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



More information about the jboss-dev-forums mailing list