NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
PabloVadear
Joined: 05 Mar 2009 Posts: 22
|
Posted: Mon Apr 30, 2012 6:56 pm Post subject: Executing Shutdown Hook in IDE |
|
|
Hi,
I'm developing an application that will run as a service. I have added a shutdown hook to the program to do some file cleanup. When I install the program as a service (on Linux as a daemon or as a Windows service) the shutdown hook executes correctly. However, when running in the IDE the shutdown hook is never executed. Is there a way to stop the running process in the IDE and have the shutdown hook execute?
Thanks,
Pablo |
|
| Back to top |
|
 |
PabloVadear
Joined: 05 Mar 2009 Posts: 22
|
Posted: Tue May 01, 2012 6:17 pm Post subject: |
|
|
Ok, since there doesn't seem to be a way to trigger the shutdown hook when stopping the running process in the IDE, has anyone tried to debug their shutdown hook code in the IDE and if so, what approach did you use?
Thanks,
Paul |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|