[jboss-user] [JBoss Seam] - Scope Precedence

monkeyden do-not-reply at jboss.com
Fri May 18 11:51:05 EDT 2007


What is the precedence of scope in this contrived scenario?  The first is the data member which I want to inject, is SESSION scoped.  The second is the Stateless SB, with EVENT scope, who defines the MyDataMember with APPLICATION scope.  See "HERE" in the code:  


  | @Name("myDataMember")
  | @Scope(SESSION) //HERE
  | public class MyDataMember {
  | ...
  | }

@Stateless
  | @Name("myAction")
  | @Scope(EVENT) //HERE
  | public class MyAction implements MyLocal {
  | 
  |     @In(scope=APPLICATION) //HERE
  |     private MyDataMember myDataMember;
  | ...
  | }
  | 


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

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



More information about the jboss-user mailing list