We are doing the same thing right now and so far so good. Since you are creating the ejbs you can define the create methods how ever you want. We use a value object and pass it into the create method. When we actually create the method we set the primary key in the value object and return that.
--- Ren�_Eigenheer <[EMAIL PROTECTED]> wrote: > I'm actually evaluating possibilities to add EJB > functionality to our struts > projects. > > By reading a lot of articles I came to conclusion > that the following > architecture may work: > > Struts-Action > - Processing http-request > - Performing formal validation (validation > framework) > - Performing simple validation with methods defined > in value object class > (validations which only require data which is > available in the value object) > - Copying action form properties to value object > properties > - Calling remote EJB session bean (value object as > parameter) > - Handling workflow > > EJB session > - Receiving request from struts action > - Performing complex validation > - Performing business logic > - Calling Entity beans > - Returning value object to strus action > - Returning return/error codes to struts action > > Entity beans > - As usual > > Is anybody using such an architecture including > session beans - experiences? > Do you see any cons? > > 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! > > Thanks for any assistance > Rene > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

