Anissa,
I've committed a change such that AMX getDefaultValues() will not
return a default value for attributes with a default value of
"\u0000"; the Map will not contain any entry for such items.
I think this is important; otherwise a caller is likely to initialize
values to "\u0000", which ends up as the string "null" in domain.xml--
not a good result.
Lloyd
MB2:amx-impl lloyd$ svn commit
Sending amx-impl/src/main/java/org/glassfish/admin/amx/config/
AMXConfigImplBase.java
Transmitting file data .
Committed revision 19424.
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