Hello
I had a simple example to getting start with JMX using Standard MBean with some basic attributes and everything was alright but now I have created a Model MBean with two attributes of type String and Integer. All the attributes and operations are shown and even my operation is working fine but those attributes' values are shown as Unavailable and I can't change them.
both attributes are readable and writable but the value text-box in jconsole is disabled and no change is applied.
What do you mean by "attributes are readable and writable"? Do you mean that the setters and getters are available? Or do you mean that it is defined in the mbeaninfo for the mbean?
Henry Wong wrote:What do you mean by "attributes are readable and writable"? Do you mean that the setters and getters are available? Or do you mean that it is defined in the mbeaninfo for the mbean?
Henry
yes attributes have both setter and getter methods and in MBeanAttributeInfo I set the readable and writable as true.