admin@glassfish.java.net

Re: Config Parsing News

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Fri, 19 Mar 2010 12:55:57 -0700

On Mar 19, 2010, at 10:30 AM, Byron Nevins wrote:

> The code that parses domain.xml and fills the Habitat with config & server objects has been enhanced and is FINISHED.
>
> What it does:
> • *All* configs are read in and added to the habitat.
so how does it decide whether or not it should load all the config or just one ?

> • All server objects are also added.
> • It checks and verifies that every server has a config-ref and that that config-ref exists. If not it is a fatal error and V3 will hang. (it is impossible to make V3 exit cleanly without halt() )
what do you use for the check ? by using Element#reference() this should be done automatically.


> • A config is allowed to have more than one server referring to it
> • A config is not forced to have anything refer to it
is there code enforcing this ?

> What About Server instances?
> This code is written and tested but not used yet because we don't have instances yet! Once we have start-instance then that instance willl only read its own config from domain.xml.
>
> What this means:
> We can add cluster and instance configs and any other configs -- and DAS will pick them up at boottime and they will be available in the Habitat.
>
>
>
> --------------------------------------------------------------------- To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net For additional commands, e-mail: admin-help_at_glassfish.dev.java.net