您的位置:首页 > 编程语言 > PHP开发

ManagementFactory.getPlatformMBeanServer() vs MBeanServerFactory.createMBeanServer()

2011-06-09 14:42 267 查看
ManagementFactory.getPlatformMBeanServer()
returns a reference to the existing MBean server within the JVM. JConsole looks at the beans on that server.

If you use
createMBeanServer()
, that will create an entirely new server. JConsole has no knowledge of it, and so will not see the beans registered with it.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐