File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes windows service problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "windows service problem" Watch "windows service problem" New topic
Author

windows service problem

Bernard Grimshaw
Greenhorn

Joined: Sep 12, 2007
Posts: 6
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

Joined: Feb 05, 2003
Posts: 234
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: windows service problem