A JMX agent consists of:
JMX agents are usually located on the same machine as the resources they control, but this is not a requirement.
java -Dcom.sun.management.jmxremote.port=1090
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-jar myApplication.jar
This instruction uses the Sun's built-in support to enable a JMX agent.
You can programmatically start a JMX agent with the RMI connector using javax.management.remote API.
To connect to a Jmx agent, you use a Jmx Service Url