Announcement Announcement Module
Collapse
No announcement yet.
SimpleCacheManager and JMX (@Cacheable) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SimpleCacheManager and JMX (@Cacheable)

    Hi, I configured SimpleCacheManager with ConcurrentMapCacheFactory bean.

    Code:
    <bean id="cacheManager" class="org.springframework.cache.support.SimpleCacheManager">
      <property name="caches">
         <set>
    	<bean class="org.springframework.cache.concurrent.ConcurrentMapCacheFactoryBean" p:name="routes" />
         </set>
      </property>
    </bean>
    Spring documentation mentioned that "SimpleCacheManager - As the cache is created by the application, it is bound to its lifecycle, making it suitable for basic use cases, tests or simple applications. The cache scales well and is very fast but it does not provide any management or persistence capabilities nor eviction contracts."

    Does it mean that I cannot monitory/modify this cache using JMX? I don't want to restart my application when my cache data needs to be refreshed.

    Thanks, Kiran
Working...
X