|
From: Kamleshwar S. <kam...@gm...> - 2012-06-18 09:19:59
|
Hi Team, I have the following scenario: Two physical boxes. each running a java service of our application. Wrapper is being used in both cases. My query is that if a windows command "net stop myservice" is executed on one of them. Would it be possible to configure the wrapper in such a way that it looks up the service on the other box( I have a script for doing this) and if the JAVA service is not running on the second instance then the wrapper aborts the command of stopping this jvm instance. This becomes a requirement to avoid human error where one brings down both the instances in case of a maintenance, and having a complete outage. I went through the documentation and found that imlementing such a thing might be possible using "Event Commands" in the following way. wrapper.event.jvm_kill.command.argv.1="myscript to check the other instance" wrapper.event.jvm_kill.command.argv.2=parameter1 wrapper.event.jvm_kill.command.block=TRUE wrapper.event.jvm_kill.command.on_exit.0=SHUTDOWN/CONTINUE I am a bit confused about the event command on_exit. What do SHUTDOWN and CONTINUE mean. I may be entirly wrong with my understanding. It would be great if someone can help me achieve the above listed scenario if it is possible. Thanks, Sunny |