summaryrefslogtreecommitdiff
path: root/java/management/eclipse-plugin/src
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2009-11-09 10:57:55 +0000
committerRobert Gemmell <robbie@apache.org>2009-11-09 10:57:55 +0000
commit436e778182bafd5958f06f657d80d39072354755 (patch)
treedd617135ac2c87cfd9a8e457822fb0d2b4650679 /java/management/eclipse-plugin/src
parentb4430e6a309f83fdaa7146bd6f3f7e3b1dca589c (diff)
downloadqpid-python-436e778182bafd5958f06f657d80d39072354755.tar.gz
QPID-2190: when management versioning using both the ServerInformation and UserManagement mbeans fails, classify the version as 1.0 instead of failing
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@834014 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management/eclipse-plugin/src')
-rw-r--r--java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/jmx/MBeanUtility.java11
-rw-r--r--java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/connection/ConnectionOperationsTabControl.java2
2 files changed, 7 insertions, 6 deletions
diff --git a/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/jmx/MBeanUtility.java b/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/jmx/MBeanUtility.java
index 5234535fe5..2f5752db9b 100644
--- a/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/jmx/MBeanUtility.java
+++ b/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/jmx/MBeanUtility.java
@@ -520,7 +520,7 @@ public class MBeanUtility
* @throws IOException
*/
public static void classifyManagementApiVersion(ManagedServer server, JMXServerRegistry serverRegistry)
- throws ManagementConsoleException, MalformedObjectNameException, NullPointerException, IOException
+ throws MalformedObjectNameException, NullPointerException, IOException
{
MBeanServerConnection mbsc = serverRegistry.getServerConnection();
@@ -570,11 +570,12 @@ public class MBeanUtility
serverRegistry.setManagementApiVersion(new ApiVersion(1, 1));
}
}
-
- return;
}
-
- throw new ManagementConsoleException("Unable to classify the server management API version");
+ else
+ {
+ //UserManagement MBean wasnt present, connected to an old server: classify as v1.0 API
+ serverRegistry.setManagementApiVersion(new ApiVersion(1, 0));
+ }
}
public static void printOutput(String statement)
diff --git a/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/connection/ConnectionOperationsTabControl.java b/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/connection/ConnectionOperationsTabControl.java
index 220ca28704..3281757526 100644
--- a/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/connection/ConnectionOperationsTabControl.java
+++ b/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/connection/ConnectionOperationsTabControl.java
@@ -180,7 +180,7 @@ public class ConnectionOperationsTabControl extends TabControl
{
titles = new String[]{"Id", "Transactional", "Num Unacked Msg", "Default Queue"};
}
- int[] bounds = { 40, 110, 145, 200, 110 };
+ int[] bounds = { 50, 110, 145, 200, 110 };
for (int i = 0; i < titles.length; i++)
{
final int index = i;