AMQ-4027: Added support for Java7 in activemq-console. Thanks to Dider Gutacker for the patch.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1382258 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Claus Ibsen 2012-09-08 09:13:41 +00:00
parent 5b4fe6e05f
commit f4c54db2a8
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ public abstract class AbstractJmxCommand extends AbstractCommand {
}
public static boolean isSunJVM() {
return getJVM().equals("Sun Microsystems Inc.");
// need to check for Oracle as that is the name for Java7 onwards.
return getJVM().equals("Sun Microsystems Inc.") || getJVM().startsWith("Oracle");
}
/**