Forums Register Login

basic connection pooling question

+Pie Number of slices to send: Send
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?
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 973 times.
Similar Threads
problem in connectionpooling
how many initial connections should be opend
problem in connectionpooling
Problems with connection pooling.
connection pool problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:33:36.