Following MXBeans in Java SE 6: Bundling Values Without Special JMX Client Configurations I managed to implement a MXBean which exposes a Map<String, String>
for a list of configuration parameters. It appears in JConsole as expected, but all values are readonly.
In the MXBEans article, this illustration shows an example where it makes sense that the attributes are read-only as they are memory usage values.
Is there a way to make the attributes editable in JConsole?
To make attributes writable from JConsole, you need to expose the setter methods also in your MBean Interface.
}
In this name is readOnly, cacheSize is read as well as write enabled.