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


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: basic connection pooling question
 
Similar Threads
how many initial connections should be opend
problem in connectionpooling
Problems with connection pooling.
problem in connectionpooling
connection pool problem