tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parsons Technical Services" <>
Subject Re: still not clear with connection pooling in tomcat
Date Wed, 06 Apr 2005 13:36:16 GMT
No problem.

With a one to one, set up the dataresource in the context element of the 

Place this after your context element. You will need to either declare one 
in the server.xml, in your app war file or create a file yourapp.xml and 
place it in the Tomcat dir:
tomcat_home/conf/Catalina/localhost or the matching host for the app.

<Resource name="jdbc/TestDB"

  <ResourceParams name="jdbc/TestDB">







Make sure the resource name= resourceParams name= and the name called out in 
the class I sent in the last email all match including case.
Set the url to match the database name in place of javatest. And use the 
user and password you created for the database.

I create a user in the database and limit the rights to only the one databse 
and with limited rights.

Add this to the web.xml for the app:

      <description>DB Connection</description>

Again match the res-ref-name to the name used above for the resource.

And that should get things talking if you have set up all the database and 

The above examples are from:

Good luck.
----- Original Message ----- 
From: "Krishnakant Mane" <>
To: "Tomcat Users List" <>
Sent: Wednesday, April 06, 2005 8:08 AM
Subject: Re: still not clear with connection pooling in tomcat

> never mind doug,
> in fact it seams that your asking questions reflects
> nothing but professionalism and perfection.  that's
> the way to do it.
> by the way the relation to databases is one  to one
> with web apps.  one web app is going to refer to only
> one database.
> so that is the way it is going to be.
> thanks
> Krishnakant.
> Send instant messages to your online friends
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message