You will assign a string array with :

<attribute name="UsedParams">john,doe,foo,bar</attribute>

see org.jboss.util.propertyeditor.StringArrayPropertyEditor

> Hi,
> 
> When developping a MBeanService component, how to get
> multiple attributes from a -service.xml file ?
> 
> for example, how to do something like :
> 
> <attribute name="usedParams">
> <attribute name="aParam">john</attribute
> <attribute name="aParam">doe</attribute
> <attribute name="aParam">foo</attribute
> <attribute name="aParam">bar</attribute
> </attribute>
> 
> and to retrieve all "aParam" attributes, according to
> the fact that there can be 1-N parameters ?
> 
> Does :
> 
> /**
> * @jmx.managed-attribute
> */
> public void setUsedParams(String[] params)
> 
> is a valid method signature ?
> 
> 
> =====



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to