[jboss-user] [JBoss Seam] - Re: Stateful Session Bean Instances and Conversations

bfo81 do-not-reply at jboss.com
Fri Sep 15 12:30:56 EDT 2006


@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.

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

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



More information about the jboss-user mailing list