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 JDBC and the fly likes Connection Pooling with Commons DBCP  - spot the problem? 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 » Databases » JDBC
Bookmark "Connection Pooling with Commons DBCP  - spot the problem?" Watch "Connection Pooling with Commons DBCP  - spot the problem?" New topic
Author

Connection Pooling with Commons DBCP - spot the problem?

Mikey Kelly
Greenhorn

Joined: Aug 09, 2005
Posts: 18
Hello,
I am using Commons DBCP to pool my database connections. Sometimes there is just an hourglass cursor when trying to access my application - looks like there are no free connections available.

Am I doing anything wrong in my code? Should I be closing the datasource, for example? Please see below.

Class for retrieving datasource:


Sample JSP page:


Thanks all.
[ November 04, 2005: Message edited by: Mikey Kelly ]
 
wood burning stoves
 
subject: Connection Pooling with Commons DBCP - spot the problem?
 
Similar Threads
Connection Pooling, anyone help me please!
How to control no. of JDBC Connections in Tomcat!!!
Deploying Commons DBCP
Can I create connection pooling with data sources using sybase driver(jconn2.jar)?
JDBC Connection Pooling Framework