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.
+1
A:
What conflicting documents have you seen? This one explains it pretty well. There is no need to change any batch files.
candiru
2009-11-12 04:58:05
If I add the attribute useJmx="true" then my ActiveMQ doesn't start up properly. I had to add the following line to my batch file. I got that from the installation of ActiveMQBrowser.set SUNJMX=-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
Jonathan Beerhalter
2009-11-12 14:12:42
+1
A:
<!-- Use the following to configure how ActiveMQ is exposed in JMX -->
<managementContext>
<managementContext createConnector="true" />
</managementContext>
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
Srodriguez
2010-02-19 05:58:08