Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-39

How to get all cache elements when connecting to the cache in a TCP Lateral Auxiliary

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Invalid
    • jcs-1.3
    • None
    • TCP Lateral Cache
    • None
    • Two Windows Servers with Tomcat 6 servers

    Description

      We declared a region with a TCP Lateral cache auxiliary with two separate servers. The connection to the JCS is done from a web service implementation (axis2) method.
      If the two Tomcats on the two machines are working than everything works fine. When one Tomcat update the cache it is seen also on the other Tomcat.
      Now the issue arises when I restart one of the Tomcats . Than it loses all cache elements and if I make a get to an element that exists in the other TOmcat I get a null. Also on JCSAdmin there is no elements on the cache.
      We tried to change the allowGet flag to True but it stopped the mutual update of new elements.
      We know we are missing here something . Can you guide us?
      Here is the cache.ccf file:

      1. DEFAULT CACHE REGION
      1. sets the default aux value for any non configured caches
        jcs.default=
        jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
        jcs.default.cacheattributes.MaxObjects=1000
        #jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
        jcs.default.elementattributes.IsEternal=false
        jcs.default.elementattributes.MaxLifeSeconds=3600
        jcs.default.elementattributes.IdleTime=1800
        jcs.default.elementattributes.IsSpool=true
        jcs.default.elementattributes.IsRemote=true
        jcs.default.elementattributes.IsLateral=true
      1. CACHE REGIONS AVAILABLE

      jcs.region.loginProfileCache=LTCP
      jcs.region.loginProfileCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
      jcs.region.loginProfileCache.cacheattributes.MaxObjects=100
      jcs.region.loginProfileCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
      jcs.region.loginProfileCache.elementattributes.IsEternal=true
      jcs.region.loginProfileCache.elementattributes.MaxLifeSeconds=1800
      jcs.region.loginProfileCache.elementattributes.IdleTime=1800
      jcs.region.loginProfileCache.elementattributes.IsSpool=true
      jcs.region.loginProfileCache.elementattributes.IsRemote=true
      jcs.region.loginProfileCache.elementattributes.IsLateral=true

      1. AUXILIARY CACHES AVAILABLE
      1. Remote RMI Cache set up to failover
        jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
        jcs.auxiliary.RFailover.attributes=org.apache.jcs.auxiliary.remote.RemoteCacheAttributes
        #jcs.auxiliary.RFailover.attributes.RemoteTypeName=LOCAL
        jcs.auxiliary.RC.attributes.RemoveUponRemotePut=false
        jcs.auxiliary.RFailover.attributes.FailoverServers=localhost:1102,localhost:1103
        jcs.auxiliary.RFailover.attributes.GetOnly=false

      #LTCP non_UDP Discovery Configuration

      jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
      jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
      jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=false
      jcs.auxiliary.LTCP.attributes.tcpServers=172.16.1.120:1110
      jcs.auxiliary.LTCP.attributes.tcpListenerPort=1110
      jcs.auxiliary.LTCP.attributes.allowGet=false

      1. Primary Disk Cache – faster than the rest because of memory key storage
        jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
        jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
        jcs.auxiliary.DC.attributes.DiskPath=C:/D_DISK/Temp/larisa/profileCashe
        jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000
        jcs.auxiliary.DC.attributes.MaxKeySize=10000
        jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
        jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500

      Attachments

        Activity

          People

            asmuts Aaron Smuts
            zvischutz Zvi Schutz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: