I am unable to change attribute of the registered MBean in JMC (v 7.1), jdk1.8.0_172

However, I am able to change it in jconsole

MBean definitions and registration:
Код: Выделить всё
public class ProfilingController implements ProfilingControllerMBean {
private boolean enabled = false;
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
}
public interface ProfilingControllerMBean {
void setEnabled(boolean enabled);
}
ManagementFactory.getPlatformMBeanServer().registerMBean(controller, new ObjectName("AppProfiling", "name", "ProfilingController"));
Источник: https://stackoverflow.com/questions/638 ... -attribute