File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes How do the connections get closed in Connection Pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How do the connections get closed in Connection Pool" Watch "How do the connections get closed in Connection Pool" New topic
Author

How do the connections get closed in Connection Pool

Chandra Bairi
Ranch Hand

Joined: Sep 12, 2003
Posts: 152
Normally a connection pool is used for giving connections to the users based on the request for a connection by the user. now let us say i have a connection pool where i have a max of 10 connections and i open these 10 connections but after sometime i close all the connections. therefore when i do that all the connections will be open in the connection pool but i would not again request for these connections until the next day. let us say the request of the connections and closing happens at particular time of the day. then how do the connections get closed should the application accomodate the functionality to close the connections after certain time or how do we do it?


Thanks,
Shekar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do the connections get closed in Connection Pool