Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBCP - How to set max wait for the test?

843859Dec 10 2008 — edited Nov 20 2014
Hey,

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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2009
Added on Dec 10 2008
1 comment
522 views