This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Is it guaranteed that this will be called when the server shuts down? If not, is there something that ensures a servlet is called on shutdown? I am logging in every servlet (in the destroy() method) whether it was called. The weird thing is ONLY the servlets that are loaded on startup had their destroy() method called. Why is this? [ January 29, 2003: Message edited by: Robert Paris ]
Joined: Jul 28, 2002
I figured out why some weren't being called. They'd never been accessed, so they weren't instantiated, hence they couldn't be destroyed. (Duh - *smack my head*) However, I still want to know if this is required: that the server calls all servlet "destroy()" methods on shutdown.