You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Maris Orbidans <M....@datapro.lv> on 2002/09/09 18:24:14 UTC

RE: Re: Struts + EJB ?

hi Rene

> By reading a lot of articles I came to conclusion that the following
> architecture may work:

yes, of course it works.
 
> Is anybody using such an architecture including session beans 
> - experiences?

Yes. It was quite good.

> And a question out of scope:
> I'm new in the area of EJB (learning with Ed Roman's book). 
> Everything looks
> quite interesting for me except.the fact that the create 
> method of entity
> beans is called with a "lot" of parameters, which obviously 
> may change, if
> you add a property to your bean. Did I miss something with 
> this subject or
> do I really have to live with this fact? I was 
> assuming/hoping that a create
> method uses the object as parameter!

You can make an ejbCreate method that takes a data transfer object as a parameter.
But take a look at "EJB Design Patterns" ( http://www.theserverside.com/resources/index.jsp ).
It advices to use fine grained getXXX setXXX methods through local interface, not DTO's as set/get parameter or ejbCreate
with a lots of arguments.

Maris Orbidans

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>