tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <>
Subject RE: Correct way to have a servlet exit ???
Date Wed, 09 May 2001 11:56:01 GMT

	I think an appropriation method would be for every request to send
back an error text stating the problem encountered during startup (i.e. This
servlet was unable to fulfill your request because config file not found.
Please notify the system administrator at admin@hostname)  This way your
users know what the problem is, instead of getting 404 errors and possibly
confusing the server.  (If you want it to be portable you would need to test
this against a number of servers since this strikes me as the thing that a
lot of servers would get wrong.)

-----Original Message-----
From: Hawkins, Keith (Keith) []
Sent: Wednesday, May 09, 2001 8:27 AM
To: tomcat-user
Subject: Correct way to have a servlet exit ???

If a servlet encounters a problem on startup (e.g. can't find a config file)
how should the servlet gracefully exit? 
Is it safe to call its own destroy() method?   Will that confuse/damage the
servlet container? 

View raw message