|
From: Sandeep K. <san...@vi...> - 2004-01-08 19:40:56
|
Hi All, We have been using Java Service Wrapper for the past several months to run a couple of Java programs as Windows services. Our current requirement needs us to use the Windows "service recovery options". In the Properties page of a service one can set 3 different actions to take when a service fails to start for 3 consecutive times. We needed this to be able to execute a restart the first 2 failures and execute a command-line SendMail.exe to send mail to support on the 3rd failure. Unfortunately, my investigation has revealed that the Java Service Wrapper does not return an exit code to the Windows Service manager to trigger the service recovery settings. I even tried using the 3 integration technique as mentioned on the website, but to no success! Can somebody comment if this is possible using Java Service Wrapper and it's current feature set and/or I am missing something here? If YES, please explain how? If NO, please suggest alternatives? Thanks in advance, Sandeep Khanna |