proxy = MBeanServerInvocationHandler.newProxyInstance(connection, objName, LifeCycleMBean.class, true);
LifeCycleMBean mc = (LifeCycleMBean) proxy;
LOGGER.info("STATE = {}", mc.getCurrentState());
mc.start();
LOGGER.info("STATE = {}", mc.getCurrentState());
mc.stop();
LOGGER.info("STATE = {}", mc.getCurrentState());
}
public void testComponent() throws Exception {
ObjectName[] names = context.getPojoComponents();