users@glassfish.java.net

Re: AS 9 PE - Question regarding instance root

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Tue, 26 Sep 2006 11:46:38 -0700

Forwarding the question and response emails to users and dev aliases for
the community's benefit.


Sreenivas Munnangi wrote:
> Ramakrishnan M wrote:
>> Hi,
>>
>> I have a customer with the following question.
>>
>> *Product: AS9 PE version on Linux*
>>
>> How does glassfish gets the definition for the domain root based on
>> AS_HOME?
>> -Dcom.sun.aas.instanceRoot="$INSTANCE_ROOT" passed in startserv is an
>> absolute path. Why is it not using this?
> The java launcher starts with nothing and it needs to be told where
> the configuration is and the instance root. The instance root location
> is defined by INSTANCE_ROOT and the config location by
> ASENV_CONF_LOCATION. Both of these values are hard coded at present
> which we are planning to change soon so that these values will be
> computed in relation to a specified domain directory location.
>
> It cannot use -Dcom.sun.aas.instanceRoot because the launcher still
> didn't read the config.
>
> Hope the above info. helps.
>> In other words, how glassfish builds the path to the domain
>> applications dir and why it's not using com.sun.aas.instanceRoot?
>>
>> Appreciate any input on this.
>>
>> Thanks,
>> -Rama
>>
>