Advertisement
Guest User

Untitled

a guest
Mar 9th, 2011
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.35 KB | None | 0 0
  1. <ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd">
  2.     <diskStore path="ehcache.disk.store.dir/hibernate" />
  3.     <cacheManagerEventListenerFactory class="" properties="" />
  4.    
  5.     <cacheManagerPeerProviderFactory
  6.         class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
  7.         properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1, multicastGroupPort=4446, timeToLive=255" />
  8.    
  9.     <!-- set port = 4000 + node number -->
  10.     <cacheManagerPeerListenerFactory
  11.         class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
  12.         properties="port=40001, socketTimeoutMillis=2000" />
  13.  
  14.     <defaultCache maxElementsInMemory="10000" eternal="false"
  15.         timeToIdleSeconds="100" timeToLiveSeconds="100" overflowToDisk="true">
  16.         <cacheEventListenerFactory
  17.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  18.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true " />
  19.         <bootstrapCacheLoaderFactory
  20.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" />
  21.     </defaultCache>
  22.  
  23.     <cache
  24.         name="org.hibernate.cache.UpdateTimestampsCache"
  25.         maxElementsInMemory="5000"
  26.         eternal="true"
  27.         overflowToDisk="true">
  28.  
  29.         <cacheEventListenerFactory
  30.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  31.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true, asynchronousReplicationIntervalMillis=1000" />
  32.         <bootstrapCacheLoaderFactory
  33.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
  34.             properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" />
  35.     </cache>
  36.  
  37.     <cache
  38.         name="com.liferay.portal.model.impl.UserImpl"
  39.         maxElementsInMemory="10000"
  40.         eternal="false"
  41.        timeToIdleSeconds="100"
  42.         overflowToDisk="true"
  43.     >
  44.         <cacheEventListenerFactory
  45.             class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
  46.             properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true, replicateUpdatesViaCopy=true, replicateRemovals=true, asynchronousReplicationIntervalMillis=1000" />
  47.         <bootstrapCacheLoaderFactory
  48.             class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
  49.             properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000" />
  50.     </cache>
  51. </ehcache>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement