[jboss-user] [EJB3] - Passivation vs. @Inject

Juergen Zimmermann do-not-reply at jboss.com
Mon Jan 31 05:10:47 EST 2011

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!

public class MyController implements Serializable {
private AuthController auth;

private void postActivate() {
    // Should I add something here?

public class AuthController implements Serializable {
// some String based fields

Reply to this message by going to Community

Start a new discussion in EJB3 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110131/c5cbaacc/attachment.html 

More information about the jboss-user mailing list