dev@glassfish.java.net

Re: [GFv3] System properties set in domain.xml not available to bootstrap code

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Thu, 19 Mar 2009 12:11:48 -0700

Sahoo wrote:
> domain.xml is parsed by asadmin start-domain command, which runs as a
> plain old Java program, so I would expect all the implementation
> challenges to have been overcome by now.

start-domain parses domain.xml *only* to form the java command line, for
the Main Class, which is ASMain. Thus, the parsing happens outside the
JVM used by the server.


-Kedar

>
> Thanks,
> Sahoo
>
> Jerome Dochez wrote:
>> this has not changed recently and it would be very difficult to parse
>> domain.xml before starting OSGi as it would require starting the
>> kernel (probably could be avoided with some work) and config-api and
>> all other imported modules as plain old jar files.
>>
>> jerome
>>
>> On Mar 19, 2009, at 11:31 AM, Sahoo wrote:
>>
>>> I used to think that we were parsing domain.xml somewhere in ASMain
>>> and hence I would be able to move some of the OSGi configuration
>>> stuff to domain.xml. But, I see we don't parse domain.xml before
>>> starting the server bundles. Is this a recent change or has it been
>>> like this from beginning? Can we parse domain.xml before starting the
>>> OSGi framework?
>>>
>>> Thanks,
>>> Sahoo
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>