aspose file tools*
The moose likes Tomcat and the fly likes Connection Pooling on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Connection Pooling on Tomcat" Watch "Connection Pooling on Tomcat" New topic
Author

Connection Pooling on Tomcat

Siamak Saarmann
Ranch Hand

Joined: Aug 21, 2004
Posts: 78
Hello,

I am using direct JDBC connections in my web application. It seems to me that it opens too many connections to database and I need to do something.

Would somone please forward me to code snippet that shows how can I use Tomcat managed database connections?

Regards,
Mac


PhD Artificial Intelligence, OCJP1.6
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61043
    
  66

Using the container-managed connection pooling should indeed solve your problem. I've moved this to the Tomcat forum where it should get better exposure to Tomcat users.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
The links below should get you started:

JNDI Resources HOW TO

JNDI Datasources HOW TO

Commons DBCP Overview
Siamak Saarmann
Ranch Hand

Joined: Aug 21, 2004
Posts: 78
Craig,

Thank you for your help.

Regards, Mac
 
Consider Paul's rocket mass heater.
 
subject: Connection Pooling on Tomcat