> From: Peter Crowther [mailto:peter.crowt...@melandra.com] 
> Subject: RE: Tomcat for Dummies
> 
> > Or does one have to implement in each servlet some
> > kind of callback routine that the ContextDestroy can call ?
> 
> That works too.

Not really.  From the API spec for contextDestroyed():

"All servlets and filters have been destroy()ed before any 
ServletContextListeners are notified of context destruction."

Note that the destroy() method for each servlet will already have been called 
prior to the invocation of contextDestroyed().  Individual servlets should have 
already done whatever cleanup is specific to them; the contextDestroyed() call 
is for cleanup necessary for the entire webapp.

 - 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