dev@glassfish.java.net

Re: How does asadmin know

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Fri, 18 Feb 2011 10:16:51 -0800

Not really. It restarts the domain in EXACTLY the same way you started it

E.g. You can do this:

java -jar glassfish.jar

And it will restart it by creating a process and running:

java -jar glassfish.jar


On 2/16/2011 10:03 AM, Tom Mueller wrote:
> 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
>>>>
>>

-- 
Oracle <http://www.oracle.com>
Byron Nevins | Principal MTS
Phone: +1 6503958992 <tel:+1%206503958992>
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
developing practices and products that help protect the environment