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 !!!

