admin@glassfish.java.net

resolving domain.xml config values eg ${com.sun.aas.installRoot}, etc

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Fri, 18 Apr 2008 12:32:21 -0700

I'm hoping someone has extant knowledge about how our variable-
subsitution works.

If a domain.xml attribute has a value like ${com.sun.aas.installRoot}
or ${foo.bar}, what is the algorithm for resolving that to an actual
value? (And where is the code that does it?)

My assumption is that the algorithm looks for values in this order,
but I might be mistakeN:

1. System.getProperty( "com.sun.aas.installRoot" )

2. a <system-property name="com.sun.aas.installRoot " value=..."> in
an enclosing scope (eg <config> or <server> or <domain>.

Right? Wrong? Something else also?

---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc