This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes Connection pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connection pool" Watch "Connection pool" New topic

Connection pool

Abdul Aatif

Joined: Feb 08, 2012
Posts: 23
how do i make my java program(connection pool program) to forcefully take idle database connections from other programs?
Tim Moores

Joined: Sep 21, 2011
Posts: 2408
I sure hope that's not possible. The solution would be to make all clients use a connection pool implementation that closes idle connections after some time, thereby freeing them up for other clients.
I agree. Here's the link:
subject: Connection pool