How can I make a method being called before the jvm exits when killing
the jvm (or pressing Ctrl-C if its in the foreground)?

I suppose a pure java way is out of the question? What is the least OS
dependant way?

What I want is to do some cleanup before stopping a server written in
java only. And it must perform the cleanup if the computer is shut down,
i.e. when the jvm is killed.

Thanks for a great mailing list!
/Jonas Holmberg, Forget-it AB


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to