1 Reply Latest reply on Oct 28, 2011 3:48 AM by gadeyne.bram

    Components shared between contexts?

    gadeyne.bram Master

      Hello,


      I've created 2 web modules in one seam ear project.


      Is it possible to put something in the session scope in one place and recover it in the other? Or should I setup my contextroot differently.


      war A contextroot: /A
      war B contextroot: /B


      I have one component SubjectManager that keeps track of the currently selected Subject.


      It is defined as


      @Name("subjectManager")
      @Scope(ScopeType.SESSION)
      public class SubjectManager{
          getters and setters for subject entity
      }
      




      In war A the object is set in this subjectManager.


      In war B the same property seems to be empty so I think a new session has been made.


      Can this be done?


      With kind regards
      Bram