[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/mgmt ...
Manik Surtani
msurtani at jboss.com
Thu Nov 16 09:14:11 EST 2006
User: msurtani
Date: 06/11/16 09:14:11
Modified: tests/functional/org/jboss/cache/mgmt NotificationTest.java
Log:
Fixed JMX related crapola
Revision Changes Path
1.14 +7 -1 JBossCache/tests/functional/org/jboss/cache/mgmt/NotificationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NotificationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/NotificationTest.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- NotificationTest.java 10 Nov 2006 02:48:45 -0000 1.13
+++ NotificationTest.java 16 Nov 2006 14:14:11 -0000 1.14
@@ -8,6 +8,7 @@
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.interceptors.CacheMgmtInterceptor;
import org.jboss.cache.jmx.JmxUtil;
+import org.jboss.cache.jmx.Cache;
import org.jboss.cache.loader.CacheLoader;
import org.jboss.cache.xml.XmlHelper;
import org.w3c.dom.Element;
@@ -23,7 +24,7 @@
* Functional tests for CacheMgmtInterceptor broadcast of cache event notifications
*
* @author Jerry Gauthier
- * @version $Id: NotificationTest.java,v 1.13 2006/11/10 02:48:45 bstansberry Exp $
+ * @version $Id: NotificationTest.java,v 1.14 2006/11/16 14:14:11 msurtani Exp $
*/
public class NotificationTest extends TestCase
{
@@ -65,6 +66,11 @@
super.setUp();
m_server = MBeanServerFactory.createMBeanServer();
cache = createCache(CLUSTER_NAME);
+ // bind manually for now.
+ ObjectName mgmt = new ObjectName(JmxUtil.PREFIX + cache.getConfiguration().getClusterName() + MGMT_SERVICE);
+ Cache cacheMBean = new Cache(cache.getCacheSPI());
+
+ m_server.registerMBean(cacheMBean, mgmt);
}
protected void tearDown() throws Exception
More information about the jboss-cvs-commits
mailing list