admin@glassfish.java.net

create-local-instance and create-instance

From: Anissa Lam <anissa.lam_at_oracle.com>
Date: Sun, 11 Jul 2010 12:44:20 -0700

Hi,

What is the difference between these 2 commands: create-local-instance
and create-instance

%aadmin create-local-instance --node localhost M1
results in :
<server node="localhost" node-agent-ref="macau2.local" name="M1" >

%asadmin create-instance --node localhost M2
results in
<server node="localhost" node-agent-ref="localhost" >

I am able to start both instances ok.
There seems a bug with list-insances if i specify the node name as the
target, it doesn't return the instances that reference this node.

%asadmin list-instances localhost
remote failure: Unable to find a valid target with name localhost

Command list-instances failed.

thanks
Anissa.