aspose file tools
The moose likes JDBC and the fly likes Connection Pooling with Commons DBCP  - spot the problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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 ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Connection Pooling with Commons DBCP - spot the problem?
 
Similar Threads
Can I create connection pooling with data sources using sybase driver(jconn2.jar)?
Connection Pooling, anyone help me please!
Deploying Commons DBCP
JDBC Connection Pooling Framework
How to control no. of JDBC Connections in Tomcat!!!