[jboss-cvs] JBossAS SVN: r62213 - branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 10 08:46:22 EDT 2007


Author: dimitris at jboss.org
Date: 2007-04-10 08:46:22 -0400 (Tue, 10 Apr 2007)
New Revision: 62213

Modified:
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java
Log:
JBAS-1955, rollback the latest changes.

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java	2007-04-10 12:45:18 UTC (rev 62212)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java	2007-04-10 12:46:22 UTC (rev 62213)
@@ -23,8 +23,6 @@
 
 import java.util.Iterator;
 
-import javax.management.AttributeList;
-import javax.management.MBeanAttributeInfo;
 import javax.management.MBeanInfo;
 import javax.management.ObjectName;
 import javax.naming.InitialContext;
@@ -33,9 +31,8 @@
 import org.jboss.test.JBossTestCase;
 
 /** 
- * Tests over the RMIAdaptor and the SerializablePolicy
+ * Tests over the RMIAdaptor
  *
- * @author <a href="mailto:mageshbk at jboss.com">Magesh Kumar B</a>
  * @author <a href="mailto:dimitris at jboss.org">Dimitris Andreadis</a>
  * @version <tt>$Revision$</tt>
  */
@@ -68,20 +65,6 @@
          try
          {
             MBeanInfo mbeanInfo = rmiAdaptor.getMBeanInfo(objectName);
-            if (mbeanInfo != null)
-            {
-               // This gives only serializable attributes
-               MBeanAttributeInfo[] attrInfos = mbeanInfo.getAttributes();
-               int attrCount = attrInfos.length;
-               String[] attrNames = new String[attrCount];
-               for (int i = 0; i < attrCount; i++)
-               {
-                  attrNames[i] = ((MBeanAttributeInfo)attrInfos[i]).getName();
-               }
-               // Now call the getAttributes on these serializable attributes
-               // even ClassNotFoundExceptions are overcome with this method
-               AttributeList attrs = rmiAdaptor.getAttributes(objectName,attrNames);
-            }
          }
          catch (Throwable t)
          {




More information about the jboss-cvs-commits mailing list