title: JBoss MBeans: How to have an array attribute?
body: <p>Is it possible to define a MBean with an array attribute. I currently have an MBean defined as:</p>
  
  <pre><code>&lt;mbean code="corp.app.jmx.DNSServer" name="corp.app:service=DNSServer"&gt;
    &lt;attribute name="Server"&gt;
      192.168.0.1 192.168.0.2 192.168.0.3
    &lt;/attribute&gt;
  &lt;/mbean&gt;
  </code></pre>
  
  <p>In the MBean code I then split the String. However - for my next MBean I need to support Strings with spaces in them. I could do a comma-delimited, but I feel sure MBeans will have support for arrays so that I could define them something like this:</p>
  
  <pre><code>&lt;mbean code="corp.app.jmx.DNSServer" name="corp.app:service=DNSServer"&gt;
    &lt;attribute name="Server"&gt;
      &lt;item&gt;192.168.0.1&lt;/item&gt;
      &lt;item&gt;192.168.0.2&lt;/item&gt;
      &lt;item&gt;192.168.0.3&lt;/item&gt;
    &lt;/attribute&gt;
  &lt;/mbean&gt;
  </code></pre>
  
  <p>Am I wrong?</p>