title: How to connect to ActiveMQ Artemis via JConsole?
body: <p>I am trying to connect via JConsole to ActiveMQ Artemis. However, it doesn't seem to work.</p>
  <ul>
  <li>JDK version: 1.8.0</li>
  <li>ActiveMQ Artemis version: 2.6.2</li>
  </ul>
  <p>I have tried the following URLs both with and without user/password (admin/admin).:</p>
  <pre><code>service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi 
  </code></pre>
  <p>and</p>
  <pre><code>service:jmx:rmi:///jndi/rmi://0.0.0.0:1099/jmxrmi
  </code></pre>
  <p>My broker is running locally. I just unzipped it and created an instance. Here is my <code>management.xml</code>:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;management-context xmlns=&quot;http://activemq.org/schema&quot;&gt;
    &lt;connector connector-port=&quot;1099&quot;/&gt;
     &lt;authorisation&gt;
        &lt;whitelist&gt;
           &lt;entry domain=&quot;hawtio&quot;/&gt;
        &lt;/whitelist&gt;
        &lt;default-access&gt;
           &lt;access method=&quot;list*&quot; roles=&quot;amq&quot;/&gt;
           &lt;access method=&quot;get*&quot; roles=&quot;amq&quot;/&gt;
           &lt;access method=&quot;is*&quot; roles=&quot;amq&quot;/&gt;
           &lt;access method=&quot;set*&quot; roles=&quot;amq&quot;/&gt;
           &lt;access method=&quot;*&quot; roles=&quot;amq&quot;/&gt;
        &lt;/default-access&gt;
        &lt;role-access&gt;
           &lt;match domain=&quot;org.apache.activemq.artemis&quot;&gt;
              &lt;access method=&quot;list*&quot; roles=&quot;amq&quot;/&gt;
              &lt;access method=&quot;get*&quot; roles=&quot;amq&quot;/&gt;
              &lt;access method=&quot;is*&quot; roles=&quot;amq&quot;/&gt;
              &lt;access method=&quot;set*&quot; roles=&quot;amq&quot;/&gt;
              &lt;access method=&quot;*&quot; roles=&quot;amq&quot;/&gt;
           &lt;/match&gt;
           &lt;!--example of how to configure a specific object--&gt;
           &lt;!--&lt;match domain=&quot;org.apache.activemq.artemis&quot; key=&quot;subcomponent=queues&quot;&gt;
              &lt;access method=&quot;list*&quot; roles=&quot;view,update,amq&quot;/&gt;
              &lt;access method=&quot;get*&quot; roles=&quot;view,update,amq&quot;/&gt;
              &lt;access method=&quot;is*&quot; roles=&quot;view,update,amq&quot;/&gt;
              &lt;access method=&quot;set*&quot; roles=&quot;update,amq&quot;/&gt;
              &lt;access method=&quot;*&quot; roles=&quot;amq&quot;/&gt;
           &lt;/match&gt;--&gt;
        &lt;/role-access&gt;
     &lt;/authorisation&gt;
  &lt;/management-context&gt;
  </code></pre>
  <p>I have tried the following:</p>
  <ol>
  <li>Uncommented <code>&lt;connector connector-port=&quot;1099&quot;/&gt;</code> in <code>management.xml</code> file</li>
  <li>Uncommented in <code>artemis-service.xml</code>:
  <pre class="lang-xml prettyprint-override"><code>&lt;!-- uncomment this if you want to connect jconsole to connect --&gt;
  &lt;argument&gt;-Dcom.sun.management.jmxremote&lt;/argument&gt;
  &lt;argument&gt;-Dcom.sun.management.jmxremote.port=1099&lt;/argument&gt;
  &lt;argument&gt;-Dcom.sun.management.jmxremote.ssl=false&lt;/argument&gt;
  &lt;argument&gt;-Dcom.sun.management.jmxremote.authenticate=false&lt;/argument&gt;
  </code></pre>
  </li>
  <li>Add in <code>artemis-service.xml</code>:
  <pre class="lang-xml prettyprint-override"><code>&lt;argument&gt;-Dcom.sun.management.jmxremote.rmi.port=1099&lt;/argument&gt;
  </code></pre>
  </li>
  </ol>