Re: How to turn off JNDI datasource connection pooling

2009-01-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: > On Fri, Jan 16, 2009 at 16:45, Christopher Schultz > wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Keith, >> >> Keith Thomas wrote: >>> As part of the >>> deployment I just need a way of defining the datasour

Re: How to turn off JNDI datasource connection pooling

2009-01-17 Thread Pid
Caldarale, Charles R wrote: >> From: Pid [mailto:p...@pidster.com] >> Subject: Re: How to turn off JNDI datasource connection pooling >> >> I'm getting a little confused trying to follow this thread. > > There was a distinct lack of specifics in the beginning

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com] > Subject: Re: How to turn off JNDI datasource connection pooling > > I'm getting a little confused trying to follow this thread. There was a distinct lack of specifics in the beginning. However, I think I understand why he's doing thi

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Pid
Caldarale, Charles R wrote: >> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >> Subject: RE: How to turn off JNDI datasource connection pooling >> >> Look at the construct in the servlet spec. > > O.k., that was too simplistic. You'll also ne

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Len Popp
On Fri, Jan 16, 2009 at 16:45, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Keith, > > Keith Thomas wrote: >> As part of the >> deployment I just need a way of defining the datasource in a manner that is >> external to my code and configurable by administrators.

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith, Keith Thomas wrote: > As part of the > deployment I just need a way of defining the datasource in a manner that is > external to my code and configurable by administrators. Use of a DataSource implies the use of a connection pool, which seems

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Subject: RE: How to turn off JNDI datasource connection pooling > > Look at the construct in the servlet spec. O.k., that was too simplistic. You'll also need the following. Does your DB driver include some f

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: How to turn off JNDI datasource connection pooling > > Make sure you set auth=Servlet in the . That should be auth="Application". - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and i

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: Re: How to turn off JNDI datasource connection pooling > > I just want to be able to define the datasource using JNDI so > it is external to my application. That's another piece of information you haven't

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Keith Thomas
Thanks Jan. I don't want to use Tomcat's database pool, I just want to be able to define the datasource using JNDI so it is external to my application. I am doing this for various web servers and I'm beginning to think I will have to tell my customers Tomcat does not support JNDI datasource defini

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Keith Thomas
I am managing the database connection credentials because this is the only way to access this legacy database. Otherwise I have very little code because Hibernate takes care of all the heavy lifting. As part of the deployment I just need a way of defining the datasource in a manner that is externa

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Kees Jan Koster
Dear Keith, It's not clear what you want to do (as opposed to what you don't want to do). Is your goal to use a >> new DB connection for every DB access your webapp makes, or do you want to do DB connection >> pooling inside your webapp, or ??? Not using connection pooling at all is a r

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: RE: How to turn off JNDI datasource connection pooling > > The security for the data within the database is entirely > baked into the restriction that every user has their own > database connection. >From the

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Keith Thomas
>> It's not clear what you want to do (as opposed to what you don't want to do). Is your goal to use a >> new DB connection for every DB access your webapp makes, or do you want to do DB connection >> >> pooling inside your webapp, or ??? >> Not using connection pooling at all is a real perform

RE: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: Re: How to turn off JNDI datasource connection pooling > > provided enough explanation but what I want is for Tomcat > to keep out of connection creation It's not clear what you want to do (as opposed to what

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Keith Thomas
Apologies if I don't understand how a jndi datasource should work or if I've not provided enough explanation but what I want is for Tomcat to keep out of connection creation. Even if I have maxactive set to 1 I still get a stacktrace like this, at org.apache.tomcat.dbcp.dbcp.DriverConnectionFacto

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith, Keith Thomas wrote: > I have an application that runs against a legacy database. For reasons I > won't go into here I need to turn off jndi datasource connection pooling. I > have been unsuccessful finding documentation or mailing list entries

Re: How to turn off JNDI datasource connection pooling

2009-01-15 Thread Keith Thomas
Thanks Chuck. I've uploaded it again, this time as a text file. It seems ok this time. On Thu, Jan 15, 2009 at 7:02 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Keith Thomas [mailto:keith.tho...@gmail.com] > > Subject: How to turn off JNDI datasource connection pooling

RE: How to turn off JNDI datasource connection pooling

2009-01-15 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: How to turn off JNDI datasource connection pooling > > I attach my server.xml file in case this helps. Your attachment failed to materialize. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERI