This content has been marked as final.
Show 2 replies
-
1. Re: Stateful Session Bean Instances and Conversations
bfo81 Sep 15, 2006 12:30 PM (in response to jgilbert)@Stateful @Scope(ScopeType.CONVERSATION) //I think this is the default scope so you might leave it out @Name("...") public class WhateverBean implements Whatever, Serializable { @In(required=false) //should be initially created in here @Out private AnEntity entity; ... }
If you do it like this, there should be a separate SFSB for every conversation and every instance has its very own entity instance. -
2. Re: Stateful Session Bean Instances and Conversations
pmuir Sep 17, 2006 6:02 PM (in response to jgilbert)It depends on you conversation propogation. You can control this using the s:link tag or the conversationPropogation request parameter. Unless you @End a conversation or set the conversationPropogation to none you remain in the current conversation.