Got it, 

testOnBorrow="true" 
validationQuery="select 1" 
validationInterval="10000"

did the trick.


sojin wrote:
> 
> How to configure Tomcat 7 jdbc pool to retry database connection if the DB
> goes restarted ? 
> With default configurations on alternatives like apache dbcp or bonecp,
> the connection gets automatically re-connected when DB back in life. But
> not with the Tomcat jdbc with all default configuration. Any help?
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-retry-database-connection-with-Tomcat-7-jdbc-pool---tp31359736p31367275.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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

Reply via email to