This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Trying to use JConsole username & password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply locked New topic
Author

Trying to use JConsole username & password

David Irwin
Ranch Hand

Joined: Mar 25, 2004
Posts: 82
I've deployed a stand alone Java application and have enabled JMX using the -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authentication=false -Dcom.sun.management.jmxremote.ssl=false command line options. Right now I can successfully connect to the JVM using JConsole. I'd like, however, to enable username/passwords in order to make monitoring and controlling via JConsole a bit more secure. Per Sun documents it would appear that I need to:

1) Remove the -Dcom.sun.management.jmxremote.authenticate=false system variable (it defaults to true)
2) Rename the <JRE_HOME>/lib/management/jmxremote.password.template to <JRE_HOME>/lib/management/jmxremote.password and verify the <JRE_HOME>/lib/management/jmxremote.access files in order to enable user authentication.
3) Secure both the jmxremote.password and jmxremote.access by removing the suggested Windows permissions.

However, after making these changes and restarting the application I can still connect using JConsole from a different computer without being required to enter a username/password.

What do I need to do differently?

Thanks,
Dave

Tried using both JDK 1.5.0_14 and JRE 1.6.0_11 on Windows XP.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to use JConsole username & password
 
Similar Threads
WebSphere JMX and Sun's JConsole.exe
jconsole to monitor server's VM args from windows client
Using the JConsole username & password
Security Contraints setup..
Spring application using MSSQL 2000 datasource (Mixed mode authentication)