This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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.