You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Viral_Thakkar <Vi...@infosys.com> on 2003/12/30 14:29:25 UTC

Stateful session bean

Hi all,
 
Please confirm the below understanding of mine.
 
Architecture:
Action --> Business Delegate --> Session Bean --> Database
 
Business delegate will hold a reference of session bean, this uses
Service locator pattern to get Home Object reference. It will have
business methods which will invoke corresponding methods on session EJB.
 
In case of stateless session bean, I don't seem any problem but if I
have to use stateful session bean then I think I should store reference
of business delegate in the HttpSession so that another Action class
(some another event in same session) can refer to the existing stateful
session bean instance through business delegate which can be accessed
from HttpSession.
 
Please reply.
 
Thanks & Regards,
Viral