You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Günter Kukies <gu...@heuft.com> on 2002/07/10 16:56:17 UTC

reload servlet after any Exception

Hi,

my servlet opens a jdbc connection in init() (connection pooling) and saves the connection in a variable.
If the database becomes out of service for any reason, the connection gets corrupted and the servlet throws a SQLException.
Is it possible to reload (init()) the servlet after an Exception (at the next servlet request), 
to try to connect when the database is up again?

Günter Kukies