ehcache is not working

shimon360

New Member
Hi I'm implementing annotation based ehcache in my application. I'm implementing this on service layer and I'm using DetachedCriteria for queries, but ehcache is not working. Can anybody have any idea about this? please help me or suggest me some other way to do this.Thanks in advanceIn ehcache.xml \[code\] <defaultCache eternal="true" maxElementsInMemory="100" overflowToDisk="false" /> <cache name="loadAll" maxElementsInMemory="1000" eternal="true" overflowToDisk="false" /></ehcache>\[/code\]on service layer I'm using\[code\]@Cacheable(cacheName="loadAll") List<ShiftDetail> loadAll(DetachedCriteria detachedCriteria);\[/code\]and in applicationContext.xml ehcache is mapped as\[code\]<ehcache:annotation-driven create-missing-caches="true" cache-manager="cacheManager" /><bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" > <property name="configLocation" value="http://stackoverflow.com/WEB-INF/ehcache.xml"/> </bean>\[/code\]
 
Back
Top