summaryrefslogtreecommitdiffstats
path: root/sandbox/endpoint-ehcache/src/test/resources/ehcache2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/endpoint-ehcache/src/test/resources/ehcache2.xml')
-rw-r--r--sandbox/endpoint-ehcache/src/test/resources/ehcache2.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/sandbox/endpoint-ehcache/src/test/resources/ehcache2.xml b/sandbox/endpoint-ehcache/src/test/resources/ehcache2.xml
new file mode 100644
index 0000000000..9ed08b2da8
--- /dev/null
+++ b/sandbox/endpoint-ehcache/src/test/resources/ehcache2.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="ehcache.xsd"
+ updateCheck="true" monitoring="autodetect">
+
+ <cacheManagerEventListenerFactory class="" properties=""/>
+
+ <cacheManagerPeerProviderFactory class=
+ "net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
+ properties="peerDiscovery=manual,
+ rmiUrls=//localhost:40001/sampleDistributedCache1"
+ propertySeparator="," />
+
+ <cacheManagerPeerListenerFactory
+ class="org.apache.tuscany.sca.endpoint.ehcache.TuscanyRMICacheManagerPeerListenerFactory"
+ properties="localhost,
+ port=40009,
+ remoteObjectPort=40008,
+ socketTimeoutMillis=120000"
+ propertySeparator="," />
+
+
+ <defaultCache
+ maxElementsInMemory="10000"
+ eternal="true"
+ overflowToDisk="false">
+ <cacheEventListenerFactory
+ class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
+ properties="asynchronousReplicationIntervalMillis=100"/>
+ <bootstrapCacheLoaderFactory
+ class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
+ properties="bootstrapAsynchronously=false "/>
+ </defaultCache>
+
+ <cache name="sampleDistributedCache1"
+ maxElementsInMemory="10000"
+ eternal="true"
+ overflowToDisk="false">
+ <cacheEventListenerFactory
+ class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
+ properties="asynchronousReplicationIntervalMillis=100"/>
+ <bootstrapCacheLoaderFactory
+ class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
+ properties="bootstrapAsynchronously=false "/>
+ </cache>
+
+</ehcache>