tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <david.sm...@cornell.edu>
Subject Re: programming question
Date Thu, 24 Feb 2011 17:08:44 GMT
With tomcat's built-in database pooling, just adding a validation query
to the resource config should be all that's necessary.  On each borrow
of a connection, the connection is tested and closed if the test fails. 
Failed connections are replaced with new ones.

--David

On 2/24/2011 10:49 AM, János Löbb wrote:
> Hi,
>
> What is the very basic structure of a web application that is connected to a database
through a connection pool, but would not require to restart itself or restart Tomcat when
the database goes down - let say for maintenance ?
>
> Telling otherwise how to write a webapp that would survive a database recycling and would
not require human interactions to make it work again.
>
> Thanks ahead,
>
> János
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@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