Unfortunately, JConsole in Tiger and Mustang does not have support for editing CompositeData, TabularData and arrays of OpenTypes.
In order to be able to edit these complex attributes you will have to expose each value in a complex data type as a single property with getters/setters in your MBean interface.
Regards,
Luis-Miguel ALVENTOSA
JConsole Development Team
Sun Microsystems, Inc.
Thanks for the quick response.
Just curious,
Was there a particular reason for not supporting arrays in this version of JConsole considering
array types were defined as part of the original JMX.
I was hoping to drop the third-party JMX client I have to bundle with my app now in favour of a client that is alaways present as part of the JDK without me doing any extra work.
regards
I think the reason was basically that the GUI would be substantially more complicated. There would need to be some way for you to build up the array, for example by filling it in as the lines of a JTextArea. This could certainly be considered as an enhancement for a future version.
In the meantime, you always have the option of changing your MBean interface so that it is usable from JConsole. For example, instead of an int[] parameter you could have a String which is a space-separated list of integers. It is a pity to have to do that, but it might not to be too great an impact.