Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Terminating or suspending an application if a "on start up" servlet throws an exception?

Adrian Beech

2004-01-18

Replies:

G'day,

Is it possible to have Tomcat 4.1.x terminate or suspend access to an
application if a servlet which is fired at start up throws an exception?
For example, we have two servlets which are loaded on start up. The
first one sets up the database connection pool and the second one does
various other application initialisation type actions. If either one
throws an exception then I'd like the application to be unavailable.

Can this be done? If so then how?

AB



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.