Showing posts from January, 2012

Remote JMX client

Java 6 JMX Code Example Add these properties to the target VM to specify the jmx port and allow remote connections so you can get to it from other systems without the need for authentication. JAVA_OPTS="$JAVA_OPTS" JAVA_OPTS="$JAVA_OPTS" JAVA_OPTS="$JAVA_OPTS" The example below demonstrates the following: Connection Listing all MBeans Listing all MBean attributes, types, and mutability Listing all MBean operations, parameters, and return types Getting an attributes current value Setting an attributes value Invoking operations import; import java.util.Iterator; import java.util.Set; import; import; import; import; import