|
From: Leif M. <lei...@ta...> - 2010-09-21 15:59:16
|
Vishal, We have also been working on getting this added into the Standard and Professional Editions for the next release. It will all be configurable as part of the regular wrapper.conf file. Cheers, Leif On Fri, Sep 17, 2010 at 11:09 AM, Vishal K <vis...@gm...> wrote: > Hi Leif, > > I realized that we can set the recovery options that you metioned using the > 'sc failure' command. So we can first install our service and then use this > command to set the recovery options. This will work for us fine. It isn't as > bad as I thought it would be. Thanks for your help. > > Regards, > -Vishal > > On Thu, Sep 16, 2010 at 10:50 AM, Vishal K <vis...@gm...> wrote: >> >> Hi Leif, >> >> Thanks for the info. This method does not work for us since it requires >> manual setup. I think this is a serious limitation of the wrapper. >> Unfortunately, without this fix we may not be able to use Tanuki. Do you >> have an estimate of when a fix for this would be released? Can we do the >> recovery settings that you mentioned by running an external command (and >> need not be part of wrapper.exe)? If yes, that would work as an temporary >> solution until a real fix is available, because we can script it. >> >> Your help will be greatly appreciated. >> >> Regards, >> -Vishal >> >> Date: Thu, 16 Sep 2010 19:42:57 +0900 >>> >>> From: Leif Mortenson <lei...@ta...> >>> Subject: Re: [Wrapper-user] What happens if wrapper.exe dies? >>> To: wra...@li... >>> Message-ID: >>> <AAN...@ma...> >>> Content-Type: text/plain; charset=ISO-8859-1 >>> >>> 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 |