On Tue, 25 Jul 2000, Girish K wrote:

> Hi all,
>
> How can one destroy a servlet programmatically ? Is it ok to use the
> destroy() method ?
>
> In my case, I have to NOT initialize the servlet, if an error occurs
> during the init() of the servlet. In such an instance, is it
> advisable to invoke destroy() of the servlet (currently, i'm doing
> so).
>
> Is there an alternative ?

I think in such a case you want to throw a specific exception,
something like UnavailableException.  Check to docs (and/or the list
archives) for that.

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

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to