You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Alexander Bibighaus <al...@scrashmeow.org> on 2003/10/23 18:30:55 UTC
RE: Design question with Struts
I would recommend creating a services layer for your business logic.
With this pattern, your Actions would simply call your services. Your services will contain your business logic. You could still have factories to create the bean's but rather than keeping that logic in the factory, I would move it to the service.
just my 2 cents.
-alexander
You wrote:
> Hi,
> I am using OJB in a struts Web application. I am trying to separate the
> business Logic from the controler.
> My question is : is it a good design to make a Factory for each bean and in
> the actions call only methods on the factories ?
> Regards,
> Yassine
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
--
-alexander