0 Replies Latest reply on Dec 27, 2007 8:02 AM by Mo Pour

    Referencing Session Scope with an Application.

    Mo Pour Newbie


      Seam 2.0 GA
      JBoss 4.2.1 GA

      I need to be able to reference my session-scope SFSBs from my application. I have an Application-scope component which reads emails and then I need to notify SFSBs. I looked into Observers, however after looking at some forum threads it appears that this is not possible between application and SFSBs.

      I have therefore decided to add a reference of my SFSBs to my application component and then call their public method which would refresh the persistent data. This seems to be working fine, I use the @Create to add the reference and @Destroy to remove the reference.

      Is this a good implementation, if not what would be the best practice.