Is there any Tomcat DBCP version that supports JDBC4 isValid()
API? Or do I have to always supply a validationQuery
even for JDBC4-compliant drivers?
Asked
Active
Viewed 762 times
1

rustyx
- 80,671
- 25
- 200
- 267
1 Answers
-1
commons-dbcp
does support JDBC4:
- DBCP 2 compiles and runs under Java 7 only (JDBC 4.1)
- DBCP 1.4 compiles and runs under Java 6 only (JDBC 4)
Support forisValid
also must be implemented by the DB driver, however I presume that once a driver claims to be compatible with jdbc4, it should support it.
-
The question referred to Tomcat DBCP, not commons-dbcp – Dave Bower Nov 10 '15 at 11:43