0 Replies Latest reply on Aug 5, 2007 2:36 AM by matt.drees

    Bug in org.jboss.seam.core.Contexts.java

    matt.drees

      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 :-)