• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enabling Java JConsole password protection?  RSS feed

 
Lee Kwok
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am attempting to enable remote JMX access protection using the following + variations...
-Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.password.file=D:/myJmxPassword.password
-Dcom.sun.management.jmxremote.access.file=D:/myJmxAccess.properties
-Djava.security.manager

Also did use cacls to change owner of the file etc.

However I am still able to connect to the JVM by ignoring the initial challenge and then JConsole indicates "Connection Failed: Retry? The Connection to 9648 did not succeed. Would you like to try again?". Then then click "Connect" and it connects.

The variation on this is to click "Connect" on the initial New Connection by leaving UserName and Password blank. This results in a pop up "ConnectionFailedSSL1 ConnectionFAiledSSL2". After clicking "Insecure" access to the JVM is granted.

What am I missing and why is the connection port different than what I specified?

Thanks for looking,
Canadian999
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!