commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Federico Spinazzi <>
Subject Re: [jakarta-commons] Re: [DBCP] what if the server goes off line
Date Mon, 08 Mar 2004 10:47:31 GMT
Dirk Verbeeck wrote:

> The simplest way is to restart tomcat when the database becomes 
> available after the backup.
> Another solution is to use a validationquery to detect if the 
> connection to the server is still valid.
> See
> for more details.
> Another solution is to close the BasicDatasource when the Database 
> goes down. Write a servlet that does a JNDI lookup, casts to 
> BasicDatasource and then does a ds.close().
> (The datasource will start automatically when the next getConnection 
> is called).
> -- Dirk 

many thanks

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message