如何在ActiveMQ 5.2中打开JMX [英] How do I turn on JMX in ActiveMQ 5.2

查看:135
本文介绍了如何在ActiveMQ 5.2中打开JMX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ActiveMQ 5.2中启用JMX的正确方法是什么?我看到有冲突的文档,所以我想知道是否有人知道应该对配置文件进行适当的更改。我想我可以通过更改用于启动ActiveMQ的批处理文件来使它工作,但我并不十分了解。

Whats the proper way to enable JMX in ActiveMQ 5.2? I've seen conflicting documents, so I was wondering if anyone out there knows what the proper config file change should be. I think I might have it working by changing the batch file I use to start ActiveMQ, but I don't really know.

推荐答案

<!-- Use the following to configure how ActiveMQ is exposed in JMX -->
<managementContext>
  <managementContext createConnector="true" />
</managementContext>

将其放在activemq.xml文件的代理bean中,应该可以解决问题。您的连接器将在localhost:1099中创建,并且您无需修改​​批处理文件。
此致,
Seb

Put this inside the bean of your broker in the activemq.xml file and it should do the trick. Your connector will be created in localhost:1099, and you shouldn't need to modify the batch file. Regards, Seb

这篇关于如何在ActiveMQ 5.2中打开JMX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆