[jboss-user] [JBoss Seam] - About outject and context

Bernix do-not-reply at jboss.com
Thu Nov 29 07:57:42 EST 2007


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?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108869#4108869

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108869



More information about the jboss-user mailing list