addshutdownhook not working on Windows service

I have a shutdown hook added to perform some jobs before terminate JVM. it's working fine when I run the application in the console - Ctrl-C will call my shutdown thread. However, when I stop the application using the Windows Service I created for my application, the shutdown thread is not called before terminate the JVM. Please help !!!

[347 byte] By [yinhuana] at [2007-11-26 14:53:23]
# 1
It won't work on windows.see http://archives.java.sun.com/cgi-bin/wa?A2=ind0103&L=jini-users&P=40415.cheers,David
hay7777a at 2007-7-8 8:41:43 > top of Java-index,Desktop,Runtime Environment...