tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishna Paparaju" <kpapar...@pillardata.com>
Subject RE: Tomcat / DBCP / Oracle / Reconnect
Date Fri, 19 Jan 2007 03:57:07 GMT
I could make this work with 'validationQuery' parameter. 

Thanks


-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Thursday, January 18, 2007 7:08 PM
To: Tomcat Users List
Subject: Re: Tomcat / DBCP / Oracle / Reconnect

Krishna Paparaju wrote:
> I am trying to find is there anyway Tomcat can be configured to
> reconnect back to DB once it is up. I know autoReconnect flag works
for
> mySQL. Is there any equivalent in Oracle/thin driver?

You could use testOnBorrow="true" and a validationQuery to achieve
this. Check the docs for DBCP for details on how to configure this.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message