Didier Gutacker created AMQ-4027:
------------------------------------
Summary: Add support for java 7 in AbstractJmxCommand
Key: AMQ-4027
URL: https://issues.apache.org/jira/browse/AMQ-4027
Project: ActiveMQ
Issue Type: Bug
Components: JMX
Affects Versions: 5.6.0
Reporter: Didier Gutacker
Priority: Minor
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"));
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira