File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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.
 
 
subject: Tomcat Configuration -- Use Connection Pool To Access MySQL Database