How to get all cache elements when connecting to the cache in a TCP Lateral
Auxiliary
--------------------------------------------------------------------------------------
Key: JCS-39
URL: https://issues.apache.org/jira/browse/JCS-39
Project: JCS
Issue Type: Wish
Components: TCP Lateral Cache
Affects Versions: jcs-1.3
Environment: Two Windows Servers with Tomcat 6 servers
Reporter: Zvi Schutz
Assignee: Aaron Smuts
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:
# DEFAULT CACHE REGION
# 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
# 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
# AUXILIARY CACHES AVAILABLE
# 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
# 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]