DBCP - How to set max wait for the test?
843859Dec 10 2008 — edited Nov 20 2014Hey,
I am using Apache DBCP (that comes with Tomcat 5.5.12).
I have a connection pool that is defined with testOnBorrow=true and a validation query.
I am able to get a connection (so maxWait is not helpful) but when the pool tries to validate the connection (running the validation query) the connection is stuck.
Is there a way to limit the time the test should take?