Author: alessio.soldano(a)jboss.com
Date: 2009-02-28 10:23:28 -0500 (Sat, 28 Feb 2009)
New Revision: 9450
Modified:
common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
Log:
[JBWS-2564] Use Server MBean to get JBoss version
Modified: common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2009-02-28
14:51:59 UTC (rev 9449)
+++ common/trunk/src/main/java/org/jboss/wsf/test/JBossWSTestHelper.java 2009-02-28
15:23:28 UTC (rev 9450)
@@ -227,8 +227,8 @@
String jbossVersion = null;
try
{
- ObjectName oname =
ObjectNameFactory.create("jboss.system:type=ServerConfig");
- jbossVersion = (String)getServer().getAttribute(oname,
"SpecificationVersion");
+ ObjectName oname =
ObjectNameFactory.create("jboss.system:type=Server");
+ jbossVersion = (String)getServer().getAttribute(oname,
"VersionNumber");
if (jbossVersion == null)
throw new IllegalStateException("Cannot obtain jboss version");
Show replies by date