Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection Pooling with Commons DBCP - spot the problem?

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