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

2004-01-19 Thread Shapira, Yoav
;From: Mike Curwen [mailto:[EMAIL PROTECTED] >Sent: Monday, January 19, 2004 9:50 AM >To: 'Tomcat Users List'; [EMAIL PROTECTED] >Subject: RE: Terminating or suspending an application if a "on start up" >servlet throws an exception? > >I think if you throw a

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

2004-01-19 Thread Jon Wingfield
an application if a "on start up" servlet throws an exception? 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.

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

2004-01-19 Thread Mike Curwen
I think if you throw a RuntimException, then Tomcat will mark the app as unavailable. > -Original Message- > From: Adrian Beech [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 18, 2004 5:35 AM > To: [EMAIL PROTECTED] > Subject: Terminating or suspending an appli

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

2004-01-18 Thread Adrian Beech
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