1

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?

rustyx
  • 80,671
  • 25
  • 200
  • 267

1 Answers1

-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.

Community
  • 1
  • 1
mindas
  • 26,463
  • 15
  • 97
  • 154