activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Didier Gutacker (JIRA)" <>
Subject [jira] [Created] (AMQ-4027) Add support for java 7 in AbstractJmxCommand
Date Thu, 06 Sep 2012 10:45:07 GMT
Didier Gutacker created AMQ-4027:

             Summary: Add support for java 7 in AbstractJmxCommand
                 Key: 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:

View raw message