[jboss-user] [JBoss Seam] - Bug in org.jboss.seam.core.Contexts.java

matt.drees do-not-reply at jboss.com
Sun Aug 5 02:36:07 EDT 2007


Hey Gavin, I'm pretty sure this isn't right.


  | @Scope(ScopeType.APPLICATION)
  | public class Contexts 
  | {
  | 
  |    @Factory("org.jboss.seam.core.eventContext")
  |    public Context getEventContext() 
  |    {
  |       return org.jboss.seam.contexts.Contexts.getEventContext();
  |    }
  | ...etc...
  | }
  | 

I think you meant

  | @Scope(ScopeType.APPLICATION)
  | public class Contexts 
  | {
  | 
  |    @Factory(value = "org.jboss.seam.core.eventContext", autoCreate = true, scope = ScopeType.STATELESS)
  |    public Context getEventContext() 
  |    {
  |       return org.jboss.seam.contexts.Contexts.getEventContext();
  |    }
  | ...etc...
  | }
  | 

I'm pretty sure nobody wants their session stored in the application scope :-)

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

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



More information about the jboss-user mailing list