NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Executing Shutdown Hook in IDE

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
PabloVadear



Joined: 05 Mar 2009
Posts: 22

PostPosted: Mon Apr 30, 2012 6:56 pm    Post subject: Executing Shutdown Hook in IDE Reply with quote

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

PostPosted: Tue May 01, 2012 6:17 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo