admin@glassfish.java.net

Re: The content of the troubleshooting section

From: Joe Di Pol <joe.dipol_at_oracle.com>
Date: Thu, 12 Aug 2010 16:10:21 -0700

Bill Shannon wrote:
>> 1) On DAS machine CONFIG and SSH node are equal, because on DAS machine
>> ssh would not be used.
>
> I forget where we ended up with this case. I thought you had to explicitly
> use the "localhost" node if you wanted commands like start-instance to work
> for instances on the same machine as the DAS.

"localhost" is a convenience. If the instance and the DAS are on
the same host then we detect that and bypass SSH no matter how
the instance or its node was created. The following works without SSH

$ hostname
sidewinder

$ asadmin create-node-config --nodehost sidewinder.us.oracle.com --installdir
\${com.sun.aas.installRoot} n_sidewinder

$ asadmin create-instance --node n_sidewinder i_sidewinder

$ asadmin start-instance n_instance

Of course it is easier to just use "--node localhost" in this case unless
you want the ability to move the DAS but not the instance to another
host later.

Joe