Actually, exiting Tomcat is what I DO want. And seeing as how I am definitely going against the grain here, the System.exit(0) is about as good as it's going to get. It seems to work just fine.
-----Original Message----- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 3:17 PM To: Tomcat Users List Subject: RE: I WANT Tomcat to die when a given servlet fails to initialize this exits tomcat (which i dont think you want) try return; instead.. Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: RE: I WANT Tomcat to die when a given servlet fails to > initialize > Date: Fri, 22 Aug 2008 14:08:48 -0500 > From: [EMAIL PROTECTED] > To: users@tomcat.apache.org > > Yeah, that would work :-). I guess I was looking for something a bit > more, well, graceful. > > -----Original Message----- > From: Lucas Galfaso [mailto:[EMAIL PROTECTED] > Sent: Friday, August 22, 2008 1:55 PM > To: Tomcat Users List > Subject: Re: I WANT Tomcat to die when a given servlet fails to > initialize > > try { > [...] > } catch (Exception e) { > System.exit(0); > } > > ?? > > :-) > > > -lg > > > On Fri, Aug 22, 2008 at 3:42 PM, COHEN, STEVEN M (ATTSI) > <[EMAIL PROTECTED]> > wrote: > > This may seem like an odd request and I'm sure it is nonstandard, > > but it nonetheless something I'd like to be able to do. We have an > > instance of Tomcat running. It runs one application. This > > application is NOT an application serving content over the www. It > > is basically a straight java application running inside of a web server. > > The reason it runs in a Web server is because there is one > > subsidiary use case that uses HTTP Gets to fire actions in the > > application via a servlet. No other applications are served off this web server. > > > > The non-web application's "main()" is the servlet's init(). If this > > servlet cannot initialize there is no point to keeping Tomcat > > running and it would in fact make monitoring easier if it were not running. > > > > Is there any easy way to achieve this in Tomcat? > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, > e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Get thousands of games on your PC, your mobile phone, and the web with WindowsR. http://clk.atdmt.com/MRT/go/108588800/direct/01/
smime.p7s
Description: S/MIME cryptographic signature