Ditto to this comment. DB > Tomcat JNDI Context > Hibernate > Struts
Tomcat JNDI will manage the connection pooling to the DB for you, then hibernate will use the pooled connection to perform queries against, and then in your struts app all you do is add/update/remove your objects directly using hibernate. Very slick stuff. I would suggest that you still make use of DAO's to centralize and hide the Hibernate query details from your Struts actions. -Riyad On Thursday 27 May 2004 01:30 pm, David Friedman wrote: > Next vote: Hibernate! (www.hibernate.org) > > Regards, > David > > -----Original Message----- > From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 27, 2004 1:49 PM > To: 'Struts Users Mailing List' > Subject: RE: Best way to connect to Database in struts > > > Use iBATIS SqlMaps and Dao framework. www.ibatis.com > > > -----Original Message----- > From: Axel Seinsche [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 27, 2004 11:43 AM > To: Struts Users Mailing List > Subject: Re: Best way to connect to Database in struts > > Zaid wrote: > >Dear Friends, > > > >I am new to struts, so I was confused in choosing the best way to make > >connection to Database, whether data-resources or Plugin or any other > >method, however, if any suggested way to connect, please inform me. Baring > >in mind that I am using MySQL server. > > As the Struts data-sources did not work for me, I used JNDI to access my > DB. This works very well. I somewhere read, that the Struts data-sources > are not developed any longer and the suggest to use JNDI. I don't know, > if this is true. But it could be possible. > > Axel > > --------------------------------------------------------------------- > 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] > > > --------------------------------------------------------------------- > 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]