I am using the DBCP pool and I want to use testOnBorrow and testOnReturn to verify that the connection is working.
Unfortunately, I have to set the validationQuery property for it to work.
Question: What value should be in validationQuery?
I know that: validationQuery must be an SQL SELECT statement that returns at least one row.
The problem is that we use different databases (DB2, Oracle, hsqldb).
java connection-pooling apache-commons-dbcp
bugs_ May 21 '12 at 11:20 2012-05-21 11:20
source share