commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Federico Spinazzi <f.spina...@masterhouse.it>
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 http://jakarta.apache.org/commons/dbcp/configuration.html
> 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 


Dirk,
many thanks
Federico


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


Mime
View raw message