I have configured my Java application to require authentication but not SSL
JVM args:
-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=localIpAddress
management.properties:
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
jmxremote.access
monitorRole readonly
dev readwrite
tester readwrite
jmxremote.password
monitorRole guest
dev dev
tester test
However, I am able to access this application without having to enter any credentials.
jconsole ipOfApplication:39998
I get direct access, without any password prompts. How do I make sure that I get prompted to login?
NOTE: Even after enabling SSL, the same behavior occurs.