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
Or does it only mark that Servlet as unavailable? Throwing a RuntimeException from the contextInitialized() method of a ServletContextListener will mark the context as unavailable. Use of a ServletContextListener to do app initialization is probably the way to go instead of load-on-startup servl

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 application if a "on > start