> From: Olivier Lefevre [mailto:lefev...@yahoo.com] 
> Subject: Re: Getting the Tomcat shutdown port

> > Your application may be on a shared Tomcat instance someday
> > and System.exit is really bad in that case.

> So let's kill the servlet instead.

The servlet, or the webapp?

> But it's still unclear how you'd do that because from the 
> ServletConfig you can get the ServletContext but from the
> ServletContext you can no longer get the Servlet:

There's no "the Servlet"; the ServletContext is for the webapp, which may be 
comprised of many servlets.

Why don't you simply throw a ServletException in the init() method of the 
servlets of interest?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to