> -----Original Message----- > From: Gareth Evans [mailto:[EMAIL PROTECTED] > Sent: Friday, January 05, 2007 11:39 AM > To: Struts Users Mailing List > Subject: Re: [FRIDAY] DBCP configuration > > Hi, > > I had a very similar problem using hibernate and a jndi > datasource, the way I got around this for > unit testing was to create the jndi datasource within my > unittest setup method, it's a little messy > but works for me (tihs class also loads the spring > configuration files too): >
Using iBATIS right now, I am doing something similar. I have my two separate configurations... One in the JNDI, and if that doesn't work out, build it's own DBCP pool. Now, a few of my unit tests are failing and I am going to start tracing through a bunch of my code in my persistence layer and I just figured that if I am going to make a change, now would be the time. The other big advantage to using only iBATIS is that I only have one place to make changes to my DBCP configuration. It looks like I am going to skip the Tomcat context, unless anyone can think of any 'gotchas' that I'm missing. -Wes --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

