admin@glassfish.java.net

start-local-instance

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Wed, 07 Apr 2010 15:48:20 -0700
start-local-instance is working with restrictions!

restrictions:
One can have only one config element in domain.xml
By definition, an instance is a server element where the name is anything but "server"

How to try it out:

1) recursively copy domain1  to <install>/node-agents/na*/instance1
2) Edit <install>/node-agents/na*/instance1/config/domain.xml
-- add this to the servers element like so:


<servers>
......
  <server name="instance1" config-ref="server-config">
    <application-ref ref="__admingui" virtual-servers="__asadmin" />
    <resource-ref ref="jdbc/__TimerPool" />
    <resource-ref ref="jdbc/__default" />
  </server>
</servers>


3) asadmin start-local-instance instance1


* == the hostname is preferred but any name will work.


-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188