-
1. Re: Nesting attributes in MBeans - Stupid Newbie Question
adrian.brock May 6, 2003 4:58 PM (in response to toddrun)You can specify an array, there is a property
editor for String arrays at least.
It was broken for a while, but you should be
able to get the fixed version from cvs.
The service configurator tries to convert the
text for an attribute into the correct type of the
MBean attribute.
Property editors aren't difficult to write.
See the java beans docs or look at the jboss
examples.
You could write one that converts a comma separated
value into an ArrayList for example.
The property editors are also used by the jmx-console.
Regards,
Adrian -
2. Re: Nesting attributes in MBeans - Stupid Newbie Question
toddrun May 7, 2003 11:49 AM (in response to toddrun)So, I've taken my simple MBean and changed the one attribute, which was a String type and changed it to String[].
I can deploy the MBean and the -service.xml file, but the value I get (still just using a single tag in the -service.xml file) is [Ljava.lang.String;@dcdffc and the Type in the MBean view is [Ljava.lang.String;
Is this the "broken" behavior, or have I mucked it up? BTW, I'm running jboss3.0.4 with tomcat4.1.1 on a RedHat 7.2 system.