[jboss-dev-forums] [Design of EJB 3.0] - Transient re-injection
wolfc
do-not-reply at jboss.com
Tue Feb 13 06:13:10 EST 2007
I'm looking at the stateful unit test and in StatefulBean there are two transient fields which are supposed to be re-injected after activation. This is not according to spec, where injection takes place after construction of the object (4.3.2). The bean provider is supposed to make the bean serializable (4.2.1) and re-animate it on activation.
I like the way it is in the unit test code though, so we should make this a JBoss explicit extension (and get it into the spec later).
Let's say the following:
Any field which has an injection annotation and which is transient will be re-injected upon activation. Unless in jboss.xml reinjection is set to false.
(The containers should keep an extra list of reinjectors.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015717#4015717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015717
More information about the jboss-dev-forums
mailing list