admin@glassfish.java.net

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

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Tue, 23 Sep 2008 15:24:33 -0700

In an upgrade scenario, I would expect my settings to remain the same,
not to take on new values.

On Sep 23, 2008, at 3:01 PM, Kedar Mhaswade wrote:

>
>>> I also think it's very confusing to users to not write out that
>>> 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?
>
> (It really boils down to whether our @Configured interfaces are our
> product
> interfaces because default values are now in annotations on them).