[jboss-user] [JBoss Seam] - Referencing Session Scope with an Application.

pourmo do-not-reply at jboss.com
Thu Dec 27 08:02:25 EST 2007


Hi

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.

Thanks
Mo



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

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



More information about the jboss-user mailing list