Edward wrote:
>
> I want to know if a method or function that by using it, I can
> forcely terminate Servlet
>

 Have your service() method throw an UnavailableException.
See servlet spec version 2.3[1] (it's a great resource, easy
to read, informative, well worth the cost of a free download)

  SRV.2.3.3.2 Exceptions During Request Handling

  An UnavailableException signals that the servlet
  is unable to handle requests either temporarily
  or permanently. If a permanent unavailability is
  indicated by the UnavailableException, the servlet
  container must remove the servlet from service,
  call its destroy method, and release the servlet
  instance.


> and return to OS.
>

 It's a little unclear what you mean by "return to
the OS". From what you say later, you just want the
container to take your servlet out of service (which
is exactly what the UnavailableException is for).

 "Return to the OS sounds" sounds like you want a
System.exit(), which is an antisocial thing to do
inside a servlet container (and isn't guaranteed to
work if the container has security enabled)


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
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