Description
In the class org.apache.activemq.console.command.AbstractJmxCommand the method isSunJVM() checks wether the JVM is from Sun or not. This is done by comparing the system property "vendor" with the hardcoded string "Sun Microsystems Inc.". This prevents using the PID for connecting to the JVM via JMX locally when using java 7 because the vendor string is "Oracle Corporation".
A possible bugfix is to enhance the method like this:
public static boolean isSunJVM() {
return (getJVM().equals("Sun Microsystems Inc.") ||
getJVM().equals("Oracle Corporation"));
}