Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection pool

 
Abdul Aatif
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i make my java program(connection pool program) to forcefully take idle database connections from other programs?
 
Tim Moores
Saloon Keeper
Posts: 3323
61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!