JMX Basic trouble
I cant seem to enable authentication on my jmx server...
I need to be able to connect to an rmi server through a firewall, hence I found myself doing this:
Monitoring and Management Using JMX Technology - Java SE Monitoring and Management Guide (Example 2-5)
The only changes I made are the port numbers and file names.
Just running that code, I can't get authentication to work. I can connect to my jmx agent with no credentials or just simply bad credentials. I'm not passing anything to the jvm when I start up the RMI server, so authentication _should_ be on!
Playing around with the code a bit, I was able to verify that the remote.access file is indeed being read: If I invalidate the path, the server fails to start:
>>> Exception in thread "main" java.lang.IllegalArgumentException: c:\jmxremote.access (The system cannot find the file specified)
However, if I do something similar to the password file, everything starts up perfectly fine:
>>> Starts fine
Any idea why I can't seem to get authentication working??
Here's my code... it shouldn't run but does.