• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMX: my attributes are shown as Unavailable and cannot be changed

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Can anyboy help me out of this
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Mohammad Norouzi
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic