use of org.exoplatform.container.jmx.support.Manager in project kernel by exoplatform.
the class TestManagedBy method testFoo.
public void testFoo() throws Exception {
RootContainer root = createRootContainer("managedby-configuration.xml");
MBeanServer server = root.getMBeanServer();
ManagedByManager mbm = (ManagedByManager) root.getComponentInstance("ManagedByManager");
assertNotNull(mbm);
ObjectInstance instance = server.getObjectInstance(new ObjectName("exo:object=ManagedByManager"));
Manager manager = (Manager) server.getAttribute(instance.getObjectName(), "Reference");
assertNotNull(manager);
}
Aggregations