Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

basic connection pooling question

 
bart zagers
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic