admin@glassfish.java.net

Re: side effect of not specifying default attribute in domain.xml

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Tue, 23 Sep 2008 15:13:11 -0700

>>>> default value.
>>> the main problem with writing out the default value in the domain.xml
>>> is that if we decide that the default value should be changed between
>>> releases *and* we are dealing with an upgrade scenario then the user
>>> would retain the previous default value which was clearly not his
>>> intent.
>>
>> That's right, but don't you think that a change in default value is a
>> source
>> of incompatibility?
> why would it be ?
> default values are meant to be an optimal default settings like how many
> threads should grizzly be configured when adding a new port. We should
> be able to change that value without introducing incompatibilities.

Say I do:
asadmin get "...http-listener1.enabled" and I get back "true". Is it
ok if next version returns the same value as "false"?

I am not sure.