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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]