title: JMX RMI authentication not working
body: <p>I have configured my Java application to require authentication but not SSL</p>
  
  <p>JVM args:</p>
  
  <pre><code>-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=localIpAddress 
  </code></pre>
  
  <p>management.properties:</p>
  
  <pre><code>com.sun.management.jmxremote.rmi.port=39998
  com.sun.management.jmxremote.port=39999
  com.sun.management.jmxremote.authenticate=true
  com.sun.management.jmxremote.ssl=false
  </code></pre>
  
  <p>jmxremote.access</p>
  
  <pre><code>monitorRole readonly
  dev readwrite
  tester readwrite
  </code></pre>
  
  <p>jmxremote.password</p>
  
  <pre><code>monitorRole guest
  dev dev
  tester test
  </code></pre>
  
  <p>However, I am able to access this application without having to enter any credentials.</p>
  
  <pre><code>jconsole ipOfApplication:39998
  </code></pre>
  
  <p>I get direct access, without any password prompts.  How do I make sure that I get prompted to login?</p>
  
  <p>NOTE: Even after enabling SSL, the same behavior occurs.</p>