summaryrefslogtreecommitdiffstats
path: root/sandbox/endpoint-ehcache/src/test/resources/ehcache2.xml
blob: 9ed08b2da8d0a10ea1774f1214d601d6d2fb80bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>