you can use the JMXConnection(ip,port,username,password) constructor to do that. Almost always, the u/n and p/w are "admin"
Joined: Dec 11, 2008
you meant JMXConnector? but this is for the client side to connect to the server.
i want to change the port number of the server side. when the server is brought up. the default iimplementation of JMX management start the registry on the port number, and i want to see if there is a way to intercept it and use the port number from my config file instead of using the system property from the startup script.