Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-4027

Add support for java 7 in AbstractJmxCommand

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: JMX
    • Labels:
      None
    • Patch Info:
      Patch Available

      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"));
      }

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              dgsoft Didier Gutacker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified