> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Tomcat for Dummies > > Now, do I understand this wrong
You do understand it wrong. > the running servlets A servlet doesn't "run"; threads run, executing code in servlets. > are not being notified in any way that the application > is being stopped ? During the processing for a stop request for a webapp, the destroy() method of each servlet in the webapp is called. It's up to the servlet destroy() method to coordinate that with any threads that happen to be executing inside a servlet at the time. Tomcat does not notify any running threads that a stop request has occurred, since a) the servlet spec doesn't require it, and b) some platforms have no means of performing such a notification. - 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