This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat Configuration -- Use Connection Pool To Access MySQL Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Configuration -- Use Connection Pool To Access MySQL Database" Watch "Tomcat Configuration -- Use Connection Pool To Access MySQL Database" New topic
Author

Tomcat Configuration -- Use Connection Pool To Access MySQL Database

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Hi, I was reading the instructions to use connection pool to access MySql database on Tomcat 4.1.18. The instructions are at the web link below:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
I am confused and need help:
There is this sentence in the instruction: "To configure a DBCP DataSource so that abandoned dB connections are removed and recycled, add the following paramater to the ResourceParams configuration for your DBCP DataSource Resource....."
Question: I know how to add ResourceParams. But ... where do I configure DBCP DataSource Resrouce? In the server.xml? Which section in the server.xml should I add the parameters?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Just keep reading in that same document.

under "MySQL DBCP Example", point 2 "server.xml configuration"

You'd add your parameter in with all the others that are shown here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Configuration -- Use Connection Pool To Access MySQL Database
 
Similar Threads
datasource - collection pooling w/Tomcat 5
Connection pooling
Connection Pooling - Urget Help
Using Connection Pool To Access MySQL Database On Tomcat
connection pooling with Tomcat 4.0