[jboss-cvs] JBossAS SVN: r68423 - in trunk/system-jmx/src: tests/org/jboss/test/system/controller and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 19 13:12:53 EST 2007


Author: alesj
Date: 2007-12-19 13:12:53 -0500 (Wed, 19 Dec 2007)
New Revision: 68423

Added:
   trunk/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase-mc.xml
   trunk/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase.xml
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockTransactionManager.java
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockTransactionManagerMBean.java
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockUnifiedInvoker.java
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockUnifiedInvokerMBean.java
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/ServiceControllerLocator.java
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/TestServiceControllerLifecycleCallback.java
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase.java
Modified:
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java
   trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestSuite.java
Log:
Mock @JMX test case.

Added: trunk/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase-mc.xml
===================================================================
--- trunk/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase-mc.xml	                        (rev 0)
+++ trunk/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase-mc.xml	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- The legacy JMX kernel -->
+   <bean name="ServiceControllerLocator" class="org.jboss.test.system.controller.integration.support.ServiceControllerLocator" />
+
+   <bean name="ServiceLifecycle" class="org.jboss.test.system.controller.integration.support.TestServiceControllerLifecycleCallback">
+      <property name="mbeanServer">
+         <inject bean="ServiceControllerLocator" property="mbeanServer"/>
+      </property>
+      <property name="serviceController">
+         <inject bean="ServiceControllerLocator" property="serviceController"/>
+      </property>
+   </bean>
+
+   <bean name="TransactionManager" class="org.jboss.test.system.controller.integration.support.MockTransactionManager">
+      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=TransactionManager", exposedInterface=org.jboss.test.system.controller.integration.support.MockTransactionManagerMBean.class, registerDirectly=true)</annotation>
+      <property name="transactionTimeout">300</property>
+      <property name="objectStoreDir">${jboss.server.data.dir}/tx-object-store</property>
+      <install bean="ServiceLifecycle" method="install">
+         <parameter><inject fromContext="context"/></parameter>
+      </install>
+      <uninstall bean="ServiceLifecycle" method="uninstall">
+         <parameter><inject fromContext="context"/></parameter>
+      </uninstall>
+   </bean>
+
+</deployment>

Added: trunk/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase.xml
===================================================================
--- trunk/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase.xml	                        (rev 0)
+++ trunk/system-jmx/src/resources/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase.xml	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+   <mbean code="org.jboss.test.system.controller.integration.support.MockUnifiedInvoker" name="jboss:service=invoker,type=unified">
+      <depends>jboss:service=TransactionManager</depends>
+   </mbean>
+</server>
\ No newline at end of file

Modified: trunk/system-jmx/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java	2007-12-19 16:50:17 UTC (rev 68422)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/ControllerTestDelegate.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -86,7 +86,7 @@
       super.setUp();
       
       System.setProperty(ServerConstants.MBEAN_SERVER_BUILDER_CLASS_PROPERTY, ServerConstants.DEFAULT_MBEAN_SERVER_BUILDER_CLASS);
-      server = MBeanServerFactory.newMBeanServer("jboss");
+      server = createMBeanServer();
       serviceController = createServiceController();
       server.registerMBean(serviceController, ServiceControllerMBean.OBJECT_NAME);
       
@@ -105,7 +105,12 @@
    {
       return true;
    }
-   
+
+   protected MBeanServer createMBeanServer()
+   {
+      return MBeanServerFactory.newMBeanServer("jboss");
+   }
+
    public abstract ServiceControllerMBean createServiceController() throws Exception;
    
    public void tearDown() throws Exception

Added: trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockTransactionManager.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockTransactionManager.java	                        (rev 0)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockTransactionManager.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,51 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.integration.support;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MockTransactionManager implements MockTransactionManagerMBean
+{
+   private int timeout;
+   private String dir;
+
+   public int getTransactionTimeout()
+   {
+      return timeout;
+   }
+
+   public void setTransactionTimeout(int timeout)
+   {
+      this.timeout = timeout;
+   }
+
+   public String getObjectStoreDir()
+   {
+      return dir;
+   }
+
+   public void setObjectStoreDir(String dir)
+   {
+      this.dir = dir;
+   }
+}

Added: trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockTransactionManagerMBean.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockTransactionManagerMBean.java	                        (rev 0)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockTransactionManagerMBean.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,34 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.integration.support;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface MockTransactionManagerMBean
+{
+   int getTransactionTimeout();
+   void setTransactionTimeout(int timeout);
+
+   String getObjectStoreDir();
+   void setObjectStoreDir(String dir);
+}

Added: trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockUnifiedInvoker.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockUnifiedInvoker.java	                        (rev 0)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockUnifiedInvoker.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,29 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.integration.support;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MockUnifiedInvoker implements MockUnifiedInvokerMBean
+{
+}

Added: trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockUnifiedInvokerMBean.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockUnifiedInvokerMBean.java	                        (rev 0)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/MockUnifiedInvokerMBean.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,29 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.integration.support;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public interface MockUnifiedInvokerMBean
+{   
+}

Added: trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/ServiceControllerLocator.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/ServiceControllerLocator.java	                        (rev 0)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/ServiceControllerLocator.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,45 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.integration.support;
+
+import javax.management.MBeanServer;
+
+import org.jboss.mx.util.MBeanProxyExt;
+import org.jboss.mx.util.MBeanServerLocator;
+import org.jboss.system.ServiceControllerMBean;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class ServiceControllerLocator
+{
+   public MBeanServer getMbeanServer()
+   {
+      return MBeanServerLocator.locateJBoss();
+   }
+
+   public ServiceControllerMBean getServiceController() throws Exception
+   {
+      Object result = MBeanProxyExt.create(ServiceControllerMBean.class, ServiceControllerMBean.OBJECT_NAME);
+      return ServiceControllerMBean.class.cast(result);
+   }
+}

Added: trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/TestServiceControllerLifecycleCallback.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/TestServiceControllerLifecycleCallback.java	                        (rev 0)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/support/TestServiceControllerLifecycleCallback.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,148 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.integration.support;
+
+import javax.management.MBeanServer;
+import javax.management.ObjectName;
+import javax.management.StandardMBean;
+
+import org.jboss.aop.microcontainer.aspects.jmx.JMX;
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.logging.Logger;
+import org.jboss.metadata.spi.MetaData;
+import org.jboss.system.ServiceControllerMBean;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TestServiceControllerLifecycleCallback
+{
+   /** The log */
+   private static final Logger log = Logger.getLogger(TestServiceControllerLifecycleCallback.class);
+
+   /** The mbean server */
+   private MBeanServer mbeanServer;
+
+   /** The service controller */
+   private ServiceControllerMBean serviceController;
+
+   public void setMbeanServer(MBeanServer mbeanServer)
+   {
+      this.mbeanServer = mbeanServer;
+   }
+
+   /**
+    * Set the serviceController.
+    *
+    * @param serviceController the serviceController.
+    */
+   public void setServiceController(ServiceControllerMBean serviceController)
+   {
+      this.serviceController = serviceController;
+   }
+
+   public void create() throws Exception
+   {
+      if (mbeanServer == null)
+         throw new IllegalArgumentException("No mbean server.");
+      if (serviceController == null)
+         throw new IllegalStateException("No service controller configured");
+   }
+
+   public void install(ControllerContext context) throws Exception
+   {
+      JMX jmx = readJmxAnnotation(context);
+      ObjectName objectName = createObjectName(context, jmx);
+
+      Class<?> intfClass = null;
+      boolean registerDirectly = false;
+      if (jmx != null)
+      {
+         intfClass = jmx.exposedInterface();
+         registerDirectly = jmx.registerDirectly();
+      }
+      Object mbean = (registerDirectly ? context.getTarget() : new StandardMBean(context.getTarget(), intfClass));
+      mbeanServer.registerMBean(mbean, objectName);
+      try
+      {
+         serviceController.start(objectName);
+      }
+      catch (Exception e)
+      {
+         try
+         {
+            mbeanServer.unregisterMBean(objectName);
+         }
+         catch (Exception t)
+         {
+            log.debug("Error unregistering mbean", t);
+         }
+         throw e;
+      }
+      log.debug("Registered MBean " + objectName);
+   }
+
+   public void uninstall(ControllerContext context) throws Exception
+   {
+      JMX jmx = readJmxAnnotation(context);
+      ObjectName objectName = createObjectName(context, jmx);
+
+      log.debug("Unregistering MBean " + objectName);
+      serviceController.destroy(objectName);
+   }
+
+   private JMX readJmxAnnotation(ControllerContext context) throws Exception
+   {
+      MetaData metaData = context.getScopeInfo().getMetaData();
+      if (metaData != null)
+         return metaData.getAnnotation(JMX.class);
+      return null;
+   }
+
+   private ObjectName createObjectName(ControllerContext context, JMX jmx) throws Exception
+   {
+      ObjectName objectName = null;
+      if (jmx != null)
+      {
+         String jmxName = jmx.name();
+         if (jmxName != null && jmxName.length() > 0)
+            objectName = new ObjectName(jmxName);
+      }
+
+      if (objectName == null)
+      {
+         // try to build one from the bean name
+         String name = (String) context.getName();
+
+         if (name.contains(":"))
+         {
+            objectName = new ObjectName(name);
+         }
+         else
+         {
+            objectName = new ObjectName("test:name='" + name + "'");
+         }
+      }
+
+      return objectName;
+   }
+}

Modified: trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestSuite.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestSuite.java	2007-12-19 16:50:17 UTC (rev 68422)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/IntegrationTestSuite.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -52,7 +52,8 @@
       suite.addTest(ConfigureJMXFromMCBadObjectNameUnitTestCase.suite());
       suite.addTest(MCDependsJMXUnitTestCase.suite());
       suite.addTest(JMXDependsMCUnitTestCase.suite());
-      
+      suite.addTest(JMXAnnotationTestCase.suite());
+
       return suite;
    }
 }

Added: trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase.java
===================================================================
--- trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase.java	                        (rev 0)
+++ trunk/system-jmx/src/tests/org/jboss/test/system/controller/integration/test/JMXAnnotationTestCase.java	2007-12-19 18:12:53 UTC (rev 68423)
@@ -0,0 +1,87 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.system.controller.integration.test;
+
+import javax.management.MBeanServer;
+import javax.management.MBeanServerFactory;
+
+import junit.framework.Test;
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.system.controller.integration.support.MockTransactionManagerMBean;
+import org.jboss.test.system.controller.integration.support.MockUnifiedInvokerMBean;
+
+/**
+ * JMXAnnotationTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JMXAnnotationTestCase extends AbstractIntegrationTest
+{
+   public static Test suite()
+   {
+      return suite(JMXAnnotationTestCase.class);
+   }
+
+   public JMXAnnotationTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testJMXAnnotationDependency() throws Throwable
+   {
+      ControllerContext mbeanContext = getControllerContext("jboss:service=invoker,type=unified");
+      assertNotNull(mbeanContext);
+      Object mbean = mbeanContext.getTarget();
+      assertNotNull(mbean);
+      assertInstanceOf(MockUnifiedInvokerMBean.class, mbean);
+
+      ControllerContext tmMCContext = getControllerContext("TransactionManager");
+      ControllerContext tmJMXContext = getControllerContext("jboss:service=TransactionManager");
+      assertNotNull(tmMCContext);
+      assertNotNull(tmJMXContext);
+      Object bean = tmMCContext.getTarget();
+      assertNotNull(bean);
+      assertInstanceOf(MockTransactionManagerMBean.class, bean);
+
+      validate();
+      validateMC();
+   }
+
+   public static AbstractTestDelegate getDelegate(Class clazz) throws Exception
+   {
+      return new JMXAwareTestDelegate(clazz);
+   }
+
+   private static class JMXAwareTestDelegate extends IntegrationTestDelegate
+   {
+      public JMXAwareTestDelegate(Class clazz)
+      {
+         super(clazz);
+      }
+
+      protected MBeanServer createMBeanServer()
+      {
+         return MBeanServerFactory.createMBeanServer("jboss");
+      }
+   }
+}




More information about the jboss-cvs-commits mailing list