Re: How to retry database connection with Tomcat 7 jdbc pool ?

2011-04-10 Thread sojin
Got it, testOnBorrow="true" validationQuery="select 1" validationInterval="1" 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 alte

How to retry database connection with Tomcat 7 jdbc pool ?

2011-04-09 Thread sojin
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