|
From: Leif M. <lei...@ta...> - 2010-09-16 10:43:05
|
Vishal, After you have installed the Wrapper as a service, go into the Windows Service Manager and view the Properties for the Wrapper service. You can set this up using the "Recovery" tab. http://mdenomy.files.wordpress.com/2008/02/configuring-recovery-2.jpg?w=500 If you kill the Wrapper process, then the JVM will keep running for up to 3 times the value of the wrapper.ping.timeout property. It will then shut itself down. If you use the Recovery feature, I recommend setting the delay before restart to at least this long. If you start a second JVM before the first has shut itself down then you would encounter port conflicts when the second JVM tries to start. You could handle such errors with the normal JVM restart features in the second Wrapper instance however. We are looking into what would be involved to support this directly from the Wrapper configuration file. That would be in a future release however. Please let me know how this works for you. Cheers, Leif On Thu, Sep 16, 2010 at 8:35 AM, Vishal K <vis...@gm...> wrote: > Hi All, > > I am using java service wrapper on Windows. While experimenting with the > wrapper I noticed that if I kill wrapper.exe my also application dies. After > wards, neither the wrapper.exe nor my application gets restarted. Looks like > we need to run wrapper.exe as a windows service as well. > > Any advise on how I can programatically get around this problem? > > Thanks. > -Vishal |