Предполагая определение подкачки весной, можно ли установить bootstrapCacheLoaderFactory и cacheEventListenerFactory через отдельный файл ehcache.xml или в тот же XML-файл? Если мы установим их в определениях кэша в файле ehcache.xml, какие определения кеша (в текущем xml-файле или ehcache.xml?!) Будут применены?Изменение фаз EHCache, определенных весной
Где можно установить cacheManagerPeerProviderFactory и cacheManagerPeerListenerFactory для CacheManager?
<bean id="reportCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager" ref="cacheManager"/>
<property name="maxElementsInMemory" value="${cache.report.maxMemoryElements}"/>
</bean>
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation" value="WEB-INF/ehcache.xml"/>
</bean>
Был ли тег ниже в ehcache.xml работать?
<cache name="reporteCache">
<bootstrapCacheLoaderFactory class = "net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" properties = "bootstrapAsynchronously=false, maximumChunkSizeBytes=5000000"/>
<cacheEventListenerFactory class = "net.sf.ehcache.distribution.RMICacheReplicatorFactory" properties="replicateAsynchronously=true, asynchronousReplicationIntervalMillis=100"/>
</cache>
Оба кода xml и java будут в порядке.
Заранее спасибо.