I have created an MBean
that extends a class and implements interfaces.
I am trying to add some new @ManagedAttribute
and @ManagedOperation
but they are not shown in jconsole.
I also see that the descriptions of the other attributes and operations are not shown correctly. The descriptions are set to default, although I set them in my class.
Is there any way to add new @ManagedAttribute
and @ManagedOperation
to my MBean
?
And can I set the descriptions?
I create two instances of the MBean
class with @MBean
annotation.
Is the problem that the MBean
created is of type StandardBean
and not DynamicBean
?
尝试在接口上声明管理属性和操作。
Make sure to mark the MBean with @ManagedResource to register it with the JMX Server. And also mark it as a @Component.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.