tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Recloux <thomas.recl...@gmail.com>
Subject Re: Dead connections detection
Date Fri, 14 Jan 2005 11:03:00 GMT
On Thu, 13 Jan 2005 14:41:57 +0100, Thomas Recloux
<thomas.recloux@gmail.com> wrote:

> How could I configure Tomcat for him to detect dead connections ?

I had a look at DBCP and saw the properties "testOnBorrow" and
"validationQuery".

I just had to set this properties in my server.xml file and that seems to work.
It tests de db connection when a connection is taken from the pool. It
can cause a db overhead but in my case, a little app, I do not matter.

-- 
Thomas Recloux

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message