|
From: Bob L. <cra...@cr...> - 2006-06-26 18:45:20
|
Then again, injecting a static field is simpler and more efficient, and I don't have to worry about looking up my container upon deserialization. Bob On 6/25/06, Michael Youngstrom <yo...@gm...> wrote: > I personally think the most intuitive approach is to use > <aop:scoped-proxy/>. Scoped-proxy provides this very functionality > for request and session beans. I think it should extended into > prototype and singleton beans. The trick is the proxy needs to be > able to obtain access to an applicable application context after being > serialized. > > I created an issue to hopefully address this missing bit of functionality. > > http://opensource.atlassian.com/projects/spring/browse/SPR-2121 > > In the issue I put forth the idea of possibly being able to optionally > provide a BeanFactoryLocator to the scoped-proxy so that singleton and > prototype proxies will know where to obtain a reference from a valid > BeanFactory even after serialization. I hope to try and provide a > patch in a couple of weeks. > > Mike > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |