This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes Connection Pool and Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connection Pool and Tomcat" Watch "Connection Pool and Tomcat" New topic
Author

Connection Pool and Tomcat

Usambara Veilchen
Greenhorn

Joined: Dec 07, 2000
Posts: 5
I have an application with JSP and JavaBeans, which use a Oracle8i Database. Now I want to implement connection pooling. I have tested the classes of oracle.jdbc.pool.*.
The Webserver we use is Tomcat.
Now my questions:
Can Tomcat handle connection pool by himself? Or where I have to place the oracle classes, so what the instance of the connection pool is valid over the whole time a user can use the application?
Thanks!
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
No tomcat will not handle datatabase connection pooling for you.
It's the role of the driver. Infact at our place we manage the connection pooling (probably a over kill since the driver manages the same).
So u must have the Oracle Driver in your classpath while
using tomcat.
I have a question here wrt what we do at our company.
We have our database manager which does pooling ..Is this an overkill?? since the driver itself does it?
thanks
karthik.
 
 
subject: Connection Pool and Tomcat