Juergen Zimmermann [http://community.jboss.org/people/Juergen.Zimmermann] created the discussion
"Passivation vs. @Inject" To view the discussion, visit: http://community.jboss.org/message/584261#584261 -------------------------------------------------------------- I have a Stateful SessionBean which gets passivated as it should. Now I add a CDI bean as a field using @Inject. However, after activation the field is null. Any comment is appreciated! @Named("...") @SessionScoped @Stateful public class MyController implements Serializable { @Inject private AuthController auth; @PostActivate private void postActivate() { // Should I add something here? } } @Named("auth") @SessionScoped @Log public class AuthController implements Serializable { // some String based fields } -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/584261#584261] Start a new discussion in EJB3 at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
