0 Replies Latest reply on Nov 29, 2007 7:57 AM by Bernix Ning

    About outject and context

    Bernix Ning Newbie

      I have userList session bean with Session scope,and outject an user object

      @Stateful
      @Name ("userList")
      @Scope (SESSION)
      public class UserListAction implements UserList {
       @Out private User user;
       ...
      }


      And I have an userEdit session bean with Conversation scope,and also outject an user object

      @Stateful
      @Name ("userEdit")
      @Scope (CONVERSATION)
      public class UserEditAction implements UserEdit {
       @Out private User user;
       ...
      }


      then the userlist and useredit pages will redirect to userView page.
      suppose this situation,I enter userlist page,select an user to view,then I go to useredit page,create an user,and after save will jump to view....

      since the userlist has also outject an user(in session scope?),and then the useredit will also outject another(in conversation scope?),will there be two user object now?

      and as I have end the conversation after edituser saved,I suppose that the conversation scope has been destroyed,where is that outject user object?in which context?