0

I'm using RHQ JMX plugin to get operations and attributes of one custom Mbean. It is working but I would like to add the possibility to update an attribute value and I can't use the setter function to update it as it's not recognized as an operation.

How can I update my plugin to add this possibility ?

Jessica
  • 3
  • 3
  • Have you implemented your own plugin? In this case, in the resource type describing your MBean you could add something like this `` – tsegismont Jun 22 '15 at 15:45
  • @tsegismont Yes, I' trying to implement my own plugin. Perfect, it's exactly that I was looking for. – Jessica Jun 24 '15 at 08:34

1 Answers1

0

If you're writing your own plugin, you can declare the bean attribute as a:

  • measurement, to get history of values
  • resource configuration property, to easily update the value from RHQ

Declaring an int MBean attribue in resource configuration works as follow:

<resource-configuration>
    <c:simple-property name="MyAttributeName" type="integer"/>
</resource-configuration>
tsegismont
  • 8,591
  • 1
  • 17
  • 27