[jboss-cvs] JBoss Messaging SVN: r3005 - trunk/tests/src/org/jboss/test/messaging/tools/container.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 13 11:14:45 EDT 2007


Author: timfox
Date: 2007-08-13 11:14:44 -0400 (Mon, 13 Aug 2007)
New Revision: 3005

Modified:
   trunk/tests/src/org/jboss/test/messaging/tools/container/ServiceContainer.java
Log:
throws up exception on dropAllTables


Modified: trunk/tests/src/org/jboss/test/messaging/tools/container/ServiceContainer.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/tools/container/ServiceContainer.java	2007-08-10 13:07:19 UTC (rev 3004)
+++ trunk/tests/src/org/jboss/test/messaging/tools/container/ServiceContainer.java	2007-08-13 15:14:44 UTC (rev 3005)
@@ -388,25 +388,9 @@
 
          initialContext = new InitialContext();
 
-         boolean java5 = false;
+         System.setProperty("javax.management.builder.initial",
+                               "org.jboss.test.messaging.tools.container.MBeanServerBuilder");         
 
-         try
-         {
-            ClassLoader cl = Thread.currentThread().getContextClassLoader();
-            cl.loadClass("java.lang.management.ManagementFactory");
-            java5 = true;
-         }
-         catch(ClassNotFoundException e)
-         {
-            // OK
-         }
-
-         if (java5)
-         {
-            System.setProperty("javax.management.builder.initial",
-                               "org.jboss.test.messaging.tools.container.MBeanServerBuilder");
-         }
-
          mbeanServer = MBeanServerFactory.createMBeanServer("jboss");
 
          serviceCreator = new ServiceCreator(mbeanServer);
@@ -1449,6 +1433,8 @@
             // Ignore
             log.debug("Failed to execute statement", e);
             exception = true;
+            
+            throw e;
          }
       }
       finally




More information about the jboss-cvs-commits mailing list