You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nagendra Kumar O V S <na...@ikigo.com> on 2003/05/19 06:56:18 UTC
Quick Question on EJB with struts
HI,
is it a good practice to call session facades directly from Action Class. or
to write a Business delegates to call session Facades.
-nagi
Re: Quick Question on EJB with struts
Posted by Vikram Goyal <v....@uq.edu.au>.
:) That is not too many layers.
Jokes aside, each layer has its own functionality and usefulness. Each layer
abstracts the functionality it provides so that they can almost work
independently of the presence of other layers. Action classes are part of
the web framework. Business delegate is their conduit to the back end. This
back end could be implemented in EJB, DAO or carrier pigeons and could
change.
Vikram
----- Original Message -----
From: Nagendra Kumar O V S
To: struts-user@jakarta.apache.org
Sent: Monday, May 19, 2003 3:08 PM
Subject: Re: Quick Question on EJB with struts
vikram,
don't u think that , the control passes thro' many layers to access entity
beans
action class-->business delegate-->session facade-->entity bean ???
-------Original Message-------
From: Struts Users Mailing List
Date: Monday, May 19, 2003 10:29:30 AM
To: Struts Users Mailing List
Subject: Re: Quick Question on EJB with struts
Write Business delegates which abstract access to the facades. Actions
classes, IMHO, should be as thin as possible.
Vikram
----- Original Message -----
From: Nagendra Kumar O V S
To: struts-user@jakarta.apache.org
Sent: Monday, May 19, 2003 2:56 PM
Subject: Quick Question on EJB with struts
HI,
is it a good practice to call session facades directly from Action Class. or
to write a Business delegates to call session Facades.
-nagi
____________________________________________________
IncrediMail - Email has finally evolved - Click Here
____________________________________________________
IncrediMail - Email has finally evolved - Click Here
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Quick Question on EJB with struts
Posted by Nagendra Kumar O V S <na...@ikigo.com>.
vikram,
don't u think that , the control passes thro' many layers to access entity
beans
action class-->business delegate-->session facade-->entity bean ???
-------Original Message-------
From: Struts Users Mailing List
Date: Monday, May 19, 2003 10:29:30 AM
To: Struts Users Mailing List
Subject: Re: Quick Question on EJB with struts
Write Business delegates which abstract access to the facades. Actions
classes, IMHO, should be as thin as possible.
Vikram
----- Original Message -----
From: Nagendra Kumar O V S
To: struts-user@jakarta.apache.org
Sent: Monday, May 19, 2003 2:56 PM
Subject: Quick Question on EJB with struts
HI,
is it a good practice to call session facades directly from Action Class. or
to write a Business delegates to call session Facades.
-nagi
____________________________________________________
IncrediMail - Email has finally evolved - Click Here
Re: Quick Question on EJB with struts
Posted by Vikram Goyal <v....@uq.edu.au>.
Write Business delegates which abstract access to the facades. Actions classes, IMHO, should be as thin as possible.
Vikram
----- Original Message -----
From: Nagendra Kumar O V S
To: struts-user@jakarta.apache.org
Sent: Monday, May 19, 2003 2:56 PM
Subject: Quick Question on EJB with struts
HI,
is it a good practice to call session facades directly from Action Class. or to write a Business delegates to call session Facades.
-nagi
____________________________________________________
IncrediMail - Email has finally evolved - Click Here
RE: Quick Question on EJB with struts
Posted by Mohan Radhakrishnan <mr...@cellexchange.com>.
This is based on Fowler's recommendations.
Actually I am creating a facade ( like the EJB session facade ). This
facade is coarse-grained as usual. There is something he calls the 'Layer
supertype'. The super class contains methods to access services like the
email service. The sub class contains methods to interact with the domain
model.
Later on this can become your EJB session facade. This facade is
accessible through the delegate. Action -> delegate -> Facade
Mohan
-----Original Message-----
From: Prasad Pillalamarri [mailto:prasad.pillalamarri@divine.com]
Sent: Monday, May 19, 2003 10:41 AM
To: 'Struts Users Mailing List'; 'Nagendra Kumar O V S'
Subject: RE: Quick Question on EJB with struts
Action class should not have the logic/code which is application
specific. Idea is to keep the bo class implementation independent of
framework so that we can use them in a different framework, if the need
arises.
hence action class should be limited to calling bo methods.
p.
-----Original Message-----
From: Nagendra Kumar O V S [mailto:nagendra@ikigo.com]
Sent: Monday, May 19, 2003 10:26 AM
To: struts-user@jakarta.apache.org
Subject: Quick Question on EJB with struts
HI,
is it a good practice to call session facades directly from Action
Class. or to write a Business delegates to call session Facades.
-nagi
____________________________________________________
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9> IncrediMail -
Email has finally evolved -
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9> Click Here
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Quick Question on EJB with struts
Posted by Prasad Pillalamarri <pr...@divine.com>.
Action class should not have the logic/code which is application
specific. Idea is to keep the bo class implementation independent of
framework so that we can use them in a different framework, if the need
arises.
hence action class should be limited to calling bo methods.
p.
-----Original Message-----
From: Nagendra Kumar O V S [mailto:nagendra@ikigo.com]
Sent: Monday, May 19, 2003 10:26 AM
To: struts-user@jakarta.apache.org
Subject: Quick Question on EJB with struts
HI,
is it a good practice to call session facades directly from Action
Class. or to write a Business delegates to call session Facades.
-nagi
____________________________________________________
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9> IncrediMail -
Email has finally evolved -
<http://www.incredimail.com/redir.asp?ad_id=309&lang=9> Click Here