This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Tomcat and the fly likes how to configure connection pool in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to configure connection pool in tomcat" Watch "how to configure connection pool in tomcat" New topic

how to configure connection pool in tomcat

Abhilash Boinapally

Joined: Jun 13, 2006
Posts: 8
presently i am using weblogic 8.1 while configuring we first created a connection pool then we created datasource but in tomcat 5.0 i did not see the option for creating connection pool.i now want to use tomcat for debugging purpose then tell me how to configure my database to tomcat
Uma Mahi
Ranch Hand

Joined: Jan 11, 2006
Posts: 34
you can use DBCP from org.apache.tomacat.DBCP...But first, you have to configure the JNDI DataSource in Tomcat by adding a declaration for the resource to server.xml file.

and configure your JNDI reference.

you have to insert a <resource-ref> tag into the web.xml deployment descriptor file.

you have to set the <listener> tag for registering a ServletContextListener as shown below:

Umaa Mahi<br />--SCJP1.4
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: how to configure connection pool in tomcat
It's not a secret anymore!