Java Mission Control (JMC) не может изменить атрибут MBeanJAVA

Программисты JAVA общаются здесь
Гость
Java Mission Control (JMC) не может изменить атрибут MBean

Сообщение Гость »


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

Вернуться в «JAVA»