Copyright © Sachin Handiekar. 2018 • All rights reserved.
Cedar WordPress Theme by EckoThemes.
Published with WordPress.
* A class using the MBeanServerConnection to fetch the attribute from the MBean
* Running the Queue Counter
Hi Sachin. Thanks for the posting. I tried it your code, but getting some exception connecting to the broker.
I was wondering if you do some configuration, other that adding useJmx="true" in your activemq.xml file.
I have this config:
<broker xmlns="http://activemq.apache.org/schema/core" useJmx="true" brokerName="localhost"
There was no change except the useJmx="true" setting.
Can you post the exception you'r getting…
I get java.net.ConnectException: Connection refused , any settings I need for authentication ?
Have to set VM arguments as below in order to connect JMX, you may state this as well:
This site uses Akismet to reduce spam. Learn how your comment data is processed.