在本地windows环境配置了,可以实现ehcache集群的同步,放到服务器linux上就同步不了。。那个郁闷啊。。有没人遇到过。。
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=manual,rmiUrls=//134.118.58.98:40001/rpscache|//134.118.58.98:40002/rpscache|//134.118.58.103:40001/rpscache" />
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="hostName=134.118.58.103, port=40002,socketTimeoutMillis=2000" />
<defaultCache maxElementsInMemory="1000" eternal="false"
timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="true"
diskSpoolBufferSizeMB="30" maxElementsOnDisk="10000000"
diskPersistent="false" diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU" />
<cache name="rpscache" maxElementsInMemory="1000"
maxElementsOnDisk="0" eternal="true"
memoryStoreEvictionPolicy="LFU">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicateAsynchronously=false, replicatePuts=true, replicateUpdates=true,replicateUpdatesViaCopy= false, replicateRemovals= true " />
</cache>
//134.118.58.103:40001 哪里有用双反斜框的~~
引用来自#2楼“Jimmy”的帖子
//134.118.58.103:40001 哪里有用双反斜框的~~
跟这个没关系吧。。。sample就是这样的