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

Add support for java 7 in AbstractJmxCommand

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.6.0
    • 5.7.0
    • JMX
    • None
    • 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

            davsclaus Claus Ibsen
            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