aspose file tools
The moose likes Java in General and the fly likes JMX: my attributes are shown as Unavailable and cannot be changed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "JMX: my attributes are shown as Unavailable and cannot be changed" Watch "JMX: my attributes are shown as Unavailable and cannot be changed" New topic
Author

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

Mohammad Norouzi
Ranch Hand

Joined: Jul 12, 2005
Posts: 71
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


Regards, Mohammad
my.blog | my.photoblog | Add your name to SCJP Wall Of Fame
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 16816
    
  19

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Mohammad Norouzi
Ranch Hand

Joined: Jul 12, 2005
Posts: 71
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMX: my attributes are shown as Unavailable and cannot be changed
 
Similar Threads
DeploymentException while deploying ear file in JBoss
How to monitor dynamic values in JMX !!
Servlet access to MBean in JBoss
EJB3 Bean Monitoring
Monitoring jboss