admin@glassfish.java.net

Re: create-local-instance basic functionality working

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Tue, 18 May 2010 11:31:17 -0700

Jennifer Chou wrote on 5/18/10 6:31 AM:
> Hi Vijay,
>
> create-local-instance should be operational now. I have checked-in a
> fix this morning which will update the domain.xml on the separate host
> machine. Operational meaning it will
> 1) create the domain.xml entries on the DAS host machine
> 2) create the following empty directory structure under nodeagents, plus
> das.properties.
> * || ---- agent
> * || ---- config
> * | ---- das.properties
> * || ---- <server-instance-1>
> * ||---- config
> * ||---- applications
> * ||---- generated
> * ||---- lib
> * ||---- docroot

Note that startup synchronization only needs to see the <server-instance-1>
directory. Any of the subdirectories will be created as needed during
synchronization.

> You will need to use --systemproperties for more than 1 instance to set
> unique ports on the second instance, create-instance does not
> automatically assign ports yet.
>
> I just tried this on the same machine:
> 1. asadmin start-domain (start DAS)
> 2. asadmin --host dasHost --port dasPort create-local-instance
> instance1 (don't need to specify --host, --port if on the same machine;
> use --cluster to join cluster)
> 3. asadmin _synchronize-instance instance1
> 4. asadmin start-local-instance instance1 (there's an exception in
> server.log issue 11909 but I guess it can be ignored)
> 5. copy das domain1\docroot\index.html to instance1\docroot
> 6. Go to http://moonbeam:28080/ I can see the "server is now running"
> page.

The docroot directory didn't get copied by _synchronize-instance?

> Let me know if create-local-instance is working as expected for you.
>
> Remaining tasks:
> - implement rendezvous with DAS and rendezvousOccurred property handling
> - error validation
> - implement savemasterpassword option
> - system-property ports - automatically assigning unused port for
> create-instance
> - implement agentproperties, agentport for nodeagent.properties

This is great! Looks like you're well on your way!