admin@glassfish.java.net

Re: null for default values

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Fri, 28 Mar 2008 14:53:59 -0700

Anissa,

I'm going to change the getDefaultValues() implementation so that if a
default value is "\u0000" then no default value will be returned. I
think this is desirable, as such a default value is not going to do
anything useful.

Lloyd

On Mar 28, 2008, at 2:50 PM, Lloyd L Chambers wrote:
> Anissa,
>
> You must be passing the nulls. When I use jmxcmd
>
> jmxcmd createVirtualServerConfig:test1,localhost,null
>
> I get this in domain.xml:
>
> <virtual-server hosts="localhost" id="test1" />
>
> Are you sure you're not passing null values in (possibly from
> getting default values that are null)?
>
> Lloyd
>
>
> On Mar 28, 2008, at 2:13 AM, Anissa Lam wrote:
>> - creating the config object,
>> If we don't set the optional attributes, it will be set to "null"
>> and written out to 'domain.xml' as "null".
>> eg.<virtual-server default-web-module="" state="on"
>> hosts="localhost" log-file="null" id="ABC" http-listeners="null" />
>
> ---
> Lloyd L Chambers
> lloyd.chambers_at_sun.com
> Sun Microsystems, Inc
>
>
>



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