The moose likes JDBC and Relational Databases and the fly likes basic connection pooling question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "basic connection pooling question" Watch "basic connection pooling question" New topic

basic connection pooling question

bart zagers
Ranch Hand

Joined: Feb 05, 2003
Posts: 234
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:
subject: basic connection pooling question
jQuery in Action, 3rd edition