Package org.exoplatform.container.jmx.support

Examples of org.exoplatform.container.jmx.support.ManagedManagementAware


   }

   public void testManagementAware() throws Exception
   {
      RootContainer container = createRootContainer("configuration4.xml");
      ManagedManagementAware aware = (ManagedManagementAware)container.getComponentInstance("ManagedManagementAware");
      assertNotNull(aware.context);
      MBeanServer server = container.getMBeanServer();
      assertNotNull(server);
      Object foo = server.getAttribute(ObjectName.getInstance("exo:object=Foo"), "Reference");
      assertNotNull(foo);
View Full Code Here


   }

   public void testManagementAwareManagingOtherBeans() throws Exception
   {
      RootContainer container = createRootContainer("configuration4.xml");
      ManagedManagementAware aware = (ManagedManagementAware)container.getComponentInstance("ManagedManagementAware");
      aware.context.register(new ManagedWithObjectNameTemplate("juu"));
      container.getMBeanServer().getObjectInstance(new ObjectName("exo:object=juu"));
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.container.jmx.support.ManagedManagementAware

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.