This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection Pooling with Commons DBCP - spot the problem?  RSS feed

Mikey Kelly
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!