[jboss-user] [JBossCache] - Re: 2.0 and JMX

nnnnn do-not-reply at jboss.com
Thu Jul 5 11:51:41 EDT 2007


To answer my own question, this seems to work:
                _cache = createCache();
  | 		ArrayList mbServers = MBeanServerFactory.findMBeanServer( null );
  | 		if (mbServers.size() > 0)
  | 		{
  | 			MBeanServer mbs = (MBeanServer) mbServers.get( 0 );
  | 			mbs.registerMBean( new org.jboss.cache.jmx.CacheJmxWrapper( _cache ),
  | 					new ObjectName( JmxUtil.getDefaultCacheObjectName( _cache ) ) );
  | 		}


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060894#4060894

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060894



More information about the jboss-user mailing list