3 Replies Latest reply on Feb 3, 2011 6:05 AM by Juergen Zimmermann

    Passivation vs. @Inject

    Juergen Zimmermann Master

      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