Online Books:
java.net on MarkMail:
Search |
||||||||||||||||||||||||||||
kill and kill -9Posted by km on February 7, 2007 at 10:10 PM PST
Java provides a way to add a shutdown hook that will be called during the VM's exit sequence and semantics of that are clearly defined in the Javadoc here.
The Javadoc clearly instructs If the virtual machine aborts then no guarantee can be made about whether or not any shutdown hooks will be run. I was just curious to test this out with GlassFish Application Server on my MacBookPro. When the GlassFish server VM either aborts or shuts down, I observe the following:
»
Comments
Comments are listed in date ascending order (oldest first)
|
||||||||||||||||||||||||||||
|
|