Hi Ted Thanks for your reply.
I know that the following is a bit of a dumb question but I'm just not to sure what the exact answer is... > > If I decide to introduce a pattern such as DAO, my question is, will I > > loose the benefit of managed environment? Is this entirely true or the exact opposite? e.g. I wanna use CMT, Managed Security, etc. (I wanna keep my Hibernate invocation under the CMT but still abstract the Hibernate system out using DAO) >From my point of view, DAO seems to push the Persistence invocation out of the business tier hence I would think that something like CMT wouldn't really work. Thanks, Alen ----- Original Message ----- From: "Ted Husted" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 1:37 AM Subject: Re: [OT] Design considerations > Most people, including the Hibernate team, recommend using a DAO layer > now. Even the Struts MailReader example uses a DAO layer now. There's > also a very good example in the iBATIS jPetstore example. > > http://www.ibatis.com/jpetstore/jpetstore.html > > iBATIS is actually two frameworks, a SQL Mapper and a DAO framework. If > you like what you see in the jPestore, you shoold be able to use the DAO > framework with Hibernate and then switch to something else later. (It > uses a factory configured through a XML document.) > > -Ted. > > > Alen Ribic wrote: > > > Hi to everyone on the list. > > > > I'm looking at the design options for a new app I'm working on. > > I have something like this so far:.. > > > > Struts framework --> invoke Action commands (execute) --> invoke Business > > Delegate methods --> lookup coarse-grained Session Bean --> invoke method on > > bean --> lookup factory for ORM system (Hibernate) --> manipulate data. > > > > My question is with regards to possibility of abstracting the persistence > > invocation out from the business tier to integration tier. I might wanna be > > switching to JDO for persistence in the forthcoming future and wish to make > > provision for change. > > If I decide to introduce a pattern such as DAO, my question is, will I loose > > the benefit of managed environment? I wanna use Session beans with CMT and > > to then invoke the persistence system indirectly via DAO. > > > > Regards, > > Alen > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > Ted Husted, > Junit in Action - <http://www.manning.com/massol/>, > Struts in Action - <http://husted.com/struts/book.html>, > JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

