title: How to enable Ehcache 3.x JSR-107 MBean operations?
body: <p>Why the following ehcache.xml doesn't allow to clear caches via JMX (the Operations tab is disabled in JVisualVM for MBean for cache management and enabled for cache statistic)? I use spring boot framework and specify ehcache.xml file location via spring.cache.jcache.config property and just use @Cachable spring framework annotation.</p>
  
  <pre><code>&lt;config
      xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
      xmlns='http://www.ehcache.org/v3'
      xmlns:jsr107='http://www.ehcache.org/v3/jsr107'
      xsi:schemaLocation="
          http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.0.xsd
          http://www.ehcache.org/v3/jsr107 http://www.ehcache.org/schema/ehcache-107-ext-3.0.xsd"&gt;
  
  
    &lt;service&gt;
      &lt;jsr107:defaults enable-management="true" enable-statistics="true"/&gt; 
    &lt;/service&gt;
  
    &lt;cache alias="stringCache"&gt; 
      &lt;key-type&gt;java.lang.String&lt;/key-type&gt;
      &lt;value-type&gt;java.lang.String&lt;/value-type&gt;
      &lt;heap unit="entries"&gt;2000&lt;/heap&gt;
    &lt;/cache&gt;
  
  &lt;/config&gt;
  </code></pre>