title: Java Mission Control (JMC) unable to change MBean attribute
body: <p>I am unable to change attribute of the registered MBean in JMC (v 7.1), jdk1.8.0_172</p>
  <p><a href="https://i.stack.imgur.com/j0aNY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j0aNY.png" alt="enter image description here" /></a></p>
  <p>However, I am able to change it in <strong>jconsole</strong></p>
  <p><a href="https://i.stack.imgur.com/R5rid.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R5rid.png" alt="enter image description here" /></a></p>
  <p>MBean definitions and registration:</p>
  <pre><code>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(&quot;AppProfiling&quot;, &quot;name&quot;, &quot;ProfilingController&quot;));
  </code></pre>