I wrote a batch Java 7 application that should be controlled by a JMX client. The JMX service is up and running, and I can connect to it using jConsole from my machine.
I set the option -Dcom.sun.management.jmxremote.local.only=true to avoid any incoming connection except from 127.0.0.1.
But... when I tried to connect from another computer, my connection wasn't filtered out, and I was able to access to JMX remotely.
Here it is java invocation:
java -Dcom.sun.management.jmxremote ^
-Dcom.sun.management.jmxremote.port=7000 ^
-Dcom.sun.management.jmxremote.local.only=true ^
-Dcom.sun.management.jmxremote.authenticate=false ^
-Dcom.sun.management.jmxremote.ssl=false ^
-cp lib/*;hns-consumer.jar it.andrearota.com.Main %1
Looks like that the option haven't been considered.
Any help?
true
, allowing local connections only, so the option shouldn't be needed in the first place. – Gabriellagabrielletrue
, see oracle.com/technetwork/java/javase/compatibility-417013.html – Journalism... setting this property publishes an additional RMI connector in a private read-only registry at the specified port using a well known name, "jmxrmi".
– Gabriellagabrielle