You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Smith, Darrin" <Da...@OraMetrix.com> on 2004/03/01 17:47:20 UTC

Semi-OT: Saving state when using EJB Session Beans and Struts

I have an ordering application that will use stateful session beans to do
the business logic. It can store session state in those stateful session
beans. What implications does this have on the way state is handled in the
upstream Struts app?
 
In short, the Actions will be calling various Stateful Session Beans to do
the actual work.  These are used for various reasons with the main one being
their built-in transaction support (online orders...need to be either
done...or not done). How should state be handled and at what level
(page...request...session...) in the upstream struts portion? 
 
Thanks!

Re: Semi-OT: Saving state when using EJB Session Beans and Struts

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
On 03/01/2004 05:47 PM Smith, Darrin wrote:
> In short, the Actions will be calling various Stateful Session Beans to do
> the actual work.  These are used for various reasons with the main one being
> their built-in transaction support (online orders...need to be either
> done...or not done). How should state be handled and at what level
> (page...request...session...) in the upstream struts portion? 

Hmmm. Thought someone more knowledgeable would answer this, and was 
waiting with interest myself. Oh well. Without too much experience with 
EJBs myself, I can say a couple of things: the gurus say 'use the 
business delegate pattern with an EJB session facade'. Secondly, it 
depends heavily on what your stateful session beans are holding as 
state. Care to name something?

Adam
-- 
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org