This content has been marked as final.
Show 2 replies
-
1. Re: Garbage collection of Weld proxies in Stateless session bean
mkouba Feb 27, 2013 3:49 AM (in response to maxmil)Hi Max,
I think this behaviour is correct (according to the CDI 1.0 spec)... although maybe unexpected. The producer has the dependent pseudo-scope and is bound to the lifecycle of the Service1.
This is already discussed here: https://issues.jboss.org/browse/WELD-920
Note that there's also an related open issue in CDI 1.1, discussing the scope of SLSBs: https://issues.jboss.org/browse/CDI-278
-
2. Re: Garbage collection of Weld proxies in Stateless session bean
maxmil Feb 27, 2013 4:00 AM (in response to mkouba)Thanks Martin, your spot on.
I'll have to rework my dependencies and injections to avoid using producers in SLSB's until CDI 1.1 provides a cleaner solution i suppose.