A blog about my daily tech ramblings.

Saturday, 17 December 2011

4 comments:

  1. 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"


    Thanks!

    ReplyDelete
  2. There was no change except the useJmx="true" setting.

    Can you post the exception you'r getting...

    ReplyDelete
  3. I get java.net.ConnectException: Connection refused , any settings I need for authentication ?

    ReplyDelete
  4. Have to set VM arguments as below in order to connect JMX, you may state this as well:

    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.port=1099
    -Dcom.sun.management.jmxremote.local.only=false
    -Dcom.sun.management.jmxremote.authenticate=false
    -Djava.rmi.server.hostname=localhost
    -Dcom.sun.management.jmxremote.ssl=false

    ReplyDelete