activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMQ-4027) Add support for java 7 in AbstractJmxCommand
Date Sat, 08 Sep 2012 09:15:07 GMT

     [ https://issues.apache.org/jira/browse/AMQ-4027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved AMQ-4027.
------------------------------

    Resolution: Fixed
      Assignee: Claus Ibsen

Thanks for reporting this and providing a solution.
                
> Add support for java 7 in AbstractJmxCommand
> --------------------------------------------
>
>                 Key: AMQ-4027
>                 URL: https://issues.apache.org/jira/browse/AMQ-4027
>             Project: ActiveMQ
>          Issue Type: Improvement
>          Components: JMX
>    Affects Versions: 5.6.0
>            Reporter: Didier Gutacker
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 5.7.0
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> 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

Mime
View raw message