java – 如何显示jmx MBean的类描述,属性描述和操作描述
发布时间:2020-12-15 01:27:16 所属栏目:大数据 来源:网络整理
导读:我创建了一些实现接口的bean,并创建了一个自定义MBean导出器来将这些bean公开给jconsole. 虽然一切正常,但描述没有正确显示. 在bean的顶部,我看到: Java Class : $Proxy483Description : Information on the management interface of the MBean 在我看到的
我创建了一些实现接口的bean,并创建了一个自定义MBean导出器来将这些bean公开给jconsole. Java Class : $Proxy483 Description : Information on the management interface of the MBean 在我看到的属性和操作的描述中: Operation exposed for management 有没有办法看到我在@ManagedResource注释中设置的描述? 提前致谢 最佳答案
你需要为MBeanExporter实现一个JmxAttributeSource实现(没有默认值). Spring reference提供了以下示例:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |