Announcement Announcement Module
Collapse
No announcement yet.
Ehcache and Spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ehcache and Spring

    Hi All,

    I'm working on distributed ecaching. I'm trying to access another machine and trying to get the names stored in cache, but i'm unable to do that.

    can anybody help me out.

    I have tried using automatic and manual.

    Here is the configuration.

    <?xml version="1.0" encoding="UTF-8"?>
    <ehcache>

    <!-- Sets the path to the directory where cache .data files are created.

    If the path is a Java System Property it is replaced by
    its value in the running VM.

    The following properties are translated:
    user.home - User's home directory
    user.dir - User's current working directory
    java.io.tmpdir - Default temp file path -->
    <diskStore path="java.io.tmpdir" />


    <cacheManagerPeerProviderFactory
    class="net.sf.ehcache.distribution.RMICacheManager PeerProviderFactory"
    properties="peerDiscovery=automatic, multicastGroupAddress=237.12.0.1,
    multicastGroupPort=4446, timeToLive=1"/>
    <cacheManagerPeerListenerFactory
    class="net.sf.ehcache.distribution.RMICacheManager PeerListenerFactory"/>

    <cache name="userCache"
    maxElementsInMemory="60"
    eternal="true"
    timeToIdleSeconds="60"
    timeToLiveSeconds="60"
    overflowToDisk="false">

    <cacheEventListenerFactory
    class="net.sf.ehcache.distribution.RMICacheReplica torFactory"
    properties="replicateAsynchronously=false,
    replicatePuts=true,
    replicateUpdates=true,
    replicateUpdatesViaCopy=true,
    replicateRemovals=true"/>
    </cache>





    <defaultCache maxElementsInMemory="10000" eternal="false"
    timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="true"
    diskPersistent="false" diskExpiryThreadIntervalSeconds="120" />



    <cache name="anotherCache" maxElementsInMemory="3"
    eternal="false" overflowToDisk="false" timeToIdleSeconds="30"
    timeToLiveSeconds="60" />


    </ehcache>

    For manual:

    <cacheManagerPeerProviderFactory
    class="net.sf.ehcache.distribution.RMICacheManager PeerProviderFactory"
    properties="peerDiscovery=manual,
    rmiUrls=//164.9.164.172:8081/userCache"/>


    Can anybody help me out. is there any problems in my configurations.

    Regards

    Venkatraman.P
Working...
X