tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milt Epstein <>
Subject Re: Correct way to have a servlet exit ???
Date Wed, 09 May 2001 12:32:44 GMT
On Wed, 9 May 2001, Hawkins, Keith (Keith) wrote:

> 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?

I think you might want to throw an UnavailableException.  (I'm sure
you can look up the details.)

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)

View raw message