struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From G√ľnther Wieser <>
Subject RE: Struts and EJB integration question?
Date Tue, 01 Mar 2005 22:07:27 GMT
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....


-----Original Message-----
From: leonnewsgroup [] 
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?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message