aspose file tools*
The moose likes JDBC and the fly likes basic connection pooling question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "basic connection pooling question" Watch "basic connection pooling question" New topic
Author

basic connection pooling question

bart zagers
Ranch Hand

Joined: Feb 05, 2003
Posts: 234
Hey,
I'm new to JDBC and I am looking at a connection pooling mechanism. OnCore Servlets
I found a basic implementation.
But in ConnectionPool.getConnection() I see

that Connection.isClosed() is used (see ($$$$))with a comment that it returns true if the connection has timed out.
I assume this is wrong (based on the java documentation), but how should I replace this test if I want that my method returns an open connection?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: basic connection pooling question
 
Similar Threads
problem in connectionpooling
problem in connectionpooling
Problems with connection pooling.
connection pool problem
how many initial connections should be opend