Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "FAQ/Database" page has been changed by OgnjenBlagojevic:
https://wiki.apache.org/tomcat/FAQ/Database?action=diff&rev1=7&rev2=8

Comment:
Added information about JDBC 3 and Tomcat 8

  == Questions ==
   1. [[#Q1|Is it safe to use JDBC-ODBC bridge in production environment?]]
   1. [[#Q2|How to use Orache thin driver?]]
+  1. [[#Q3|How to use JDBC 3 driver with Tomcat 8?]]
  
  
  == Answers ==
@@ -33, +34 @@

  If you use the oracle thin driver, be sure to rename it to a jar file from a 
zip file. Tomcat only auto-magically loads files ending in .jar placed in a lib 
directory. It ignores all other file extensions.
  
  
+ <<Anchor(Q3)>>
+ === How to use JDBC 3 driver with Tomcat 8 / DBCP 2? ===
+ 
+ One of the connection pool implementations in Tomcat 8 is DBCP 2, and DBCP 2 
calls Connection.isValid(int) method when no validationQuery is specified. 
IsValid(int) method is introduced with JDBC 4. If you must use JDBC 3 driver 
with Tomcat 8 / DBCP 2, make sure that you specify validationQuery attribute in 
pool configuration.
+ 
+ 
  ----
  [[CategoryFAQ]]
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to