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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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 ]
 
 
subject: Connection Pooling with Commons DBCP - spot the problem?