i for one suggest to put it in a delegate class (maybe something with
"static" methods), something you would call a service, that gives you access
to your ejb stuff.
putting it directly into the action class is not recommended, the action
class should be seen as the "connection" between your business layer and the
view, so it should ust delegate, not process anything.

as mentioned, this is my private opinion and i'm sure there are may
different opinions out there....

kr,
guenther

-----Original Message-----
From: leonnewsgroup [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 10:40 PM
To: Struts Users Mailing List
Subject: Struts and EJB integration question?

Hi there,

I am building a Struts based application with EJB model. I want to know the
strategy of find and call the EJBs in model layer. My model layer is
implemented by a stateless or stateful session bean that accesses to entity
beans. and there is a service locator object to find the session beans. My
questions are where to put the code to use the service loactor to find the
session beans? is it in the Struts Action classes or another delegate class?
Thanks.

Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to