Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

windows service problem

 
Bernard Grimshaw
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I run a polling program that is incorporated into an .exe file using JEXECreator. This allows a windows service to be created based on the .exe file.

Unfortunately when the server is shut down for maintenance the program crashes and does not restart (even though the service restarts) when the server is re-booted until the service is manually stopped and restarted.

Can anyone suggest the best approach to take when creating a service so that this type of problem doesn't happen

Regards
Bernard
 
bart zagers
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea what is going wrong.
Is it an option to try something like Java Service Wrapper, as that is what you are trying to do in this case with your JEXECreator?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic