dev@glassfish.java.net

Re: How does asadmin know

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Wed, 16 Feb 2011 12:03:47 -0600

restart-domain is a local command. So it doesn't operate on remote
domains. It asks the DAS to shutdown, and then uses Runtime.exec to run
"asadmin start-domain" again.

Tom

On 2/16/2011 11:46 AM, Vince Kraemer wrote:
> What tactic does restart-domain use to detect restart for remote domains?
>
> Thanks,
> vbk
>
> Tom Mueller wrote:
>> It's polling the server. It looks for the "pid" file to show up and
>> watches to see if the process exits.
>>
>> See StartServerHelper.waitForServer.
>>
>> Tom
>>
>>
>> On 2/15/2011 5:24 PM, vince kraemer wrote:
>>> that start-domain was successful?
>>>
>>> Is it polling the server or does the successful start callback to
>>> asadmin?
>>>
>>> Thanks,
>>> vbk
>>>
>