[webbeans-dev] Client proxies

Nicklas Karlsson nickarls at gmail.com
Sat Nov 1 08:56:42 EDT 2008


HI,

   I was looking at client proxy implementation and passivating scopes
and tried a javassist approach with a MethodHandler that
takes a Bean and a Manager as parameters in order to acquire the
current instance of the bean to execute methods on. The
problem is that Bean is not Serializable. Should it be or is the
approach wrong altogether?

   The Manager isn't serializable either but it could be transient and
then looked up if it has become null but what would the
recommended way in the RI to reconstruct it? Take it from JNDI and
populate it with stuff stored away (in ThreadLocals?)
or some other way?

---
Nik



More information about the weld-dev mailing list