Re: [FRIDAY] DBCP configuration

2007-01-05 Thread Larry Meadors
Yeah, and like Gareth said, it's pretty easy to make a mock jndi container for your tests. Larry On 1/5/07, Wesley Wannemacher <[EMAIL PROTECTED]> wrote: > > > There's one additional advantage to using JNDI for this ... > in many shops > you have two or even three environments to worry about

Re: [FRIDAY] DBCP configuration

2007-01-05 Thread Phil Steitz
On 1/5/07, Christopher Schultz <[EMAIL PROTECTED] > wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wesley, (Sorry, I accidentally sent my previous message before I was finished writing). Wesley Wannemacher wrote: > The main reason that I am currently leaning toward the iBATIS solution >

RE: [FRIDAY] DBCP configuration

2007-01-05 Thread Wesley Wannemacher
> > > There's one additional advantage to using JNDI for this ... > in many shops > you have two or even three environments to worry about (development, > staging, production), each with its own database instance. Having the > database configuration for each instance in its own server > mean

Re: [FRIDAY] DBCP configuration

2007-01-05 Thread Craig McClanahan
On 1/5/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wesley, Wesley Wannemacher wrote: > When configuring the database connections, where do you tend to put > them? Without question: have your container create the connection pool and make it

Re: [FRIDAY] DBCP configuration

2007-01-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wesley, (Sorry, I accidentally sent my previous message before I was finished writing). Wesley Wannemacher wrote: > The main reason that I am currently leaning toward the iBATIS solution > is that I am finding jUnit tests difficult to write for my pe

Re: [FRIDAY] DBCP configuration

2007-01-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wesley, Wesley Wannemacher wrote: > When configuring the database connections, where do you tend to put > them? Without question: have your container create the connection pool and make it available via JNDI. This is the most portable configuration y

RE: [FRIDAY] DBCP configuration

2007-01-05 Thread Wesley Wannemacher
> -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

Re: [FRIDAY] DBCP configuration

2007-01-05 Thread Gareth Evans
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): import java.ut