Are you talking about ActiveMQ 5.x or ActiveMQ Artemis?
Also, it looks like you're connecting to JBoss Remoting rather than your ActiveMQ broker. What exactly is supposed to be listening on port 9999?
Yes I am using jconsole, but my purpose is to monitor broker from eclipse code.
My broker is local, and I want to add physical topics to it.
I am trying to follow the first example of this link http://www.programcreek.com/java-api-examples/index.php?api=org.apache.activemq.broker.jmx.QueueViewMBean.
I am puting this JMXServiceURL: service:jmx:remoting-jmx://127.0.0.1:9999.
I am getting java.net.MalformedURLException: Unsupported protocol: remoting-jmx.
I found here https://developer.jboss.org/thread/200635 that I should add <module name="org.jboss.remoting3.remoting-jmx" services="import"/>.
I am using jboss-as-7.1.0.Final, and I don't know how to add this or jboss-client to my configuration.
Could you help me with this ?
I resolved my problem Justin, Thanks.