[jboss-user] [EJB 3.0] - Re: sharing state between web modules and ejb modules

ALRubinger do-not-reply at jboss.com
Mon Sep 24 15:16:24 EDT 2007


Why not use a Stateful bean; if you an build a mechanism such that the two web modules may share the stub (obtained from JNDI), then you can centralize  all application-session data in there.  Just make sure that only one request (Thread) is accessing the SFSB stub at any one time.

I would think of the two web layers as clients to the Application, and the SFSB you make to represent a Session in that Application.

S,
ALR

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

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



More information about the jboss-user mailing list