2011-09-15 2 views
3

ehcache.xml 파일의 RMI를 사용하는 Cache의 생성을 Spring xml로 이동하려고합니다. EhCacheFactoryBean을 만드는 것은 문제가 아니지만 RMICacheReplicatorFactory 정의는 어떻게 구현 될 수 있습니까? 여기는 ehcache.xml 파일을 보는 방법입니다.ehcache RMI config to spring

많은 감사, Idan

<cache name="MyCache1" 
    maxElementsInMemory="1000" 
    eternal="false" 
    overflowToDisk="true" 
    diskSpoolBufferSizeMB="20" 
    timeToLiveSeconds="3000" 
    timeToIdleSeconds="3000" 
    memoryStoreEvictionPolicy="LFU"> 

    <!-- RMI replication listener --> 
    <cacheEventListenerFactory 
     class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" 
     properties="replicateAsynchronously=true, 
      replicatePuts=true, 
      replicatePutsViaCopy=true, 
      replicateUpdates=true, 
      replicateUpdatesViaCopy=true, 
      replicateRemovals=true" /> 

    <!-- RMI Cache bootstrap --> 
    <bootstrapCacheLoaderFactory 
     class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" 
     properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" 
     propertySeparator="," /> 
</cache> 
+0

빈 정의가 있고 오류를 출력합니까?이 질문은 너무 광범위합니다. – ssedano

답변