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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...