Spring 3.2 and Cache Abstraction missing EhCache implementation

hoaz picture hoaz · Dec 19, 2012 · Viewed 19.2k times · Source

I am migrating our code to Spring 3.2 version (from 3.1.3) and I've got an issue with Spring Cache Abstraction.

We use EhCache implementation of CacheManager and its configuration is quite simple:

<cache:annotation-driven />

<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheCacheManager" p:cache-manager-ref="ehcache" />
<bean id="ehcache" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:config-location="classpath:ehcache.xml" />

My problem is that I am missing EhCacheCacheManager class and corresponding factory bean in spring-context jar. I suppose they moved implementation to some other module, but I can't find where exactly.

Answer

Swapnil picture Swapnil · Dec 19, 2012

According to Appendix C. Migrating to Spring Framework 3.2,

"the EHCache support classes in the org.springframework.cache.ehcache package moved from the spring-context module to spring-context-support".