Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@www.apache.org Received: (qmail 30873 invoked from network); 9 Aug 2004 15:55:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Aug 2004 15:55:18 -0000 Received: (qmail 85559 invoked by uid 500); 9 Aug 2004 15:55:17 -0000 Delivered-To: apmail-jakarta-turbine-jcs-dev-archive@jakarta.apache.org Received: (qmail 85527 invoked by uid 500); 9 Aug 2004 15:55:17 -0000 Mailing-List: contact turbine-jcs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine JCS Developers List" Reply-To: "Turbine JCS Developers List" Delivered-To: mailing list turbine-jcs-dev@jakarta.apache.org Received: (qmail 85511 invoked by uid 99); 9 Aug 2004 15:55:16 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=DNS_FROM_RFC_POST,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [207.171.160.37] (HELO smtp-out-2001.amazon.com) (207.171.160.37) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 09 Aug 2004 08:55:14 -0700 Received: from smtp-in-2002.iad2.amazon.com by smtp-out-2001.amazon.com with ESMTP (peer crosscheck: smtp-in-2002.iad2.amazon.com) X-Amazon-Corporate-Relay: smtp-out-2001.iad2.amazon.com X-AMAZON-TRACK: Received: from ex-mail-sea-03.ant.amazon.com by smtp-in-2002.iad2.amazon.com with ESMTP (crosscheck: ex-mail-sea-03.ant.amazon.com [10.16.189.52]) id i79Ft6Lp025386 for ; Mon, 9 Aug 2004 15:55:11 GMT x-mimeole: Produced By Microsoft Exchange V6.0.6556.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Newbie: pulling my hair out with remote cache Date: Mon, 9 Aug 2004 08:54:09 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Newbie: pulling my hair out with remote cache Thread-Index: AcR+Cf8NrnSR4bLRToe7XbcwHLOENwAHqvQg From: "Smuts, Aaron" To: "Turbine JCS Developers List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You have the remote server configured to invalidate items on other local = caches when something is put into the originating local cache. When an = item is put in C1 it tells CS, CS then tells all other registered = caches, in this case C2, to remove the item. The setting is in this = line. If you don't want this behavior, then set this to false. jcs.auxiliary.RFailover.attributes.RemoveUponRemotePut=3Dtrue Having this set to true is recommended for situations where the data on = a particular machine may be somewhat user specific. There are some = case, like this, where you don't want the items stored in memory to be = the same on all machines. =20 Cheers, Aaron -----Original Message----- From: David Vismans [mailto:david4@chello.nl]=20 Sent: Monday, August 09, 2004 5:13 AM To: turbine-jcs-dev@jakarta.apache.org Subject: Newbie: pulling my hair out with remote cache Hi everyone, First, JCS looks great! Looking forward to some extensive usage. However, I have been trying to get the remote cache working for about a = week now, and I am not succeeding. Here's the setup: C1 (client 1) pushes an element E in it's local cache. CS (server) receives (the update of) this object and does store it. C2 (client 2) is able to retrieve the cached element E from CS. so far so good, but when C1 repetitively updates E (named "test") with a random integer = value, C2 is not notified of the new value for this key. CS DOES receive the = element, but does not propagate to C2. I have read through every example and also mailinglist messages I still = have not found the solution. I got JCS from the CVS and RMI is working, I created the stubs etc. I am using the latest jdk on windows xp home edition. Perhaps an interesting detail: I did not get the lateral cache to = propagate either (there is no firewall running). All clients and the = server run on the same machine. If anyone could help me out here I would really appreciate it! Thanks in advance, David Below are my configuration files: C1: # PRE-DEFINED CACHE REGIONS =20 jcs.region.Tasks=3DDC,RFailover jcs.region.Tasks.cacheattributes=3Dorg.apache.jcs.engine.CompositeCacheAt= t ributes jcs.region.Tasks.cacheattributes.MaxObjects=3D1000 jcs.region.Tasks.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.engine.= m emory.lru.LRUMemoryCache jcs.region.Tasks.cacheattributes.UseMemoryShrinker=3Dfalse jcs.region.Tasks.cacheattributes.MaxMemoryIdleTimeSeconds=3D3600 jcs.region.Tasks.cacheattributes.ShrinkerIntervalSeconds=3D60 jcs.region.Tasks.elementattributes=3Dorg.apache.jcs.engine.ElementAttribu= t es jcs.region.Tasks.elementattributes.IsEternal=3Dfalse jcs.region.Tasks.elementattributes.IdleTime=3D1800 jcs.region.Tasks.elementattributes.IsSpool=3Dtrue jcs.region.Tasks.elementattributes.IsRemote=3Dtrue jcs.region.Tasks.elementattributes.IsLateral=3Dfalse jcs.system.groupIdCache=3Djcs.system.groupIdCache.cacheattributes=3Dorg.a= pac he.jcs.engine.CompositeCacheAttributes jcs.system.groupIdCache.cacheattributes.MaxObjects=3D10000 jcs.system.groupIdCache.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.= e ngine.memory.lru.LRUMemoryCache # Remote RMI Cache set up to failover jcs.auxiliary.RFailover=3Dorg.apache.jcs.auxiliary.remote.RemoteCacheFact= o ry jcs.auxiliary.RFailover.attributes=3Dorg.apache.jcs.auxiliary.remote.Remo= t eCacheAttributes jcs.auxiliary.RFailover.attributes.RemoteHost=3Dlocalhost jcs.auxiliary.RFailover.attributes.RemotePort=3D2099 jcs.auxiliary.RFailover.attributes.LocalPort=3D2103 #jcs.auxiliary.RFailover.attributes.FailoverServers=3Dlocalhost:2099 jcs.auxiliary.RFailover.attributes.RemoveUponRemotePut=3Dtrue jcs.auxiliary.RFailover.attributes.GetOnly=3Dfalse #jcs.auxiliary.RFailover.attributes.RemoteTypeName=3DREMOTE # AVAILABLE AUXILIARY CACHES =20 jcs.auxiliary.DC=3Dorg.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache= F actory jcs.auxiliary.DC.attributes=3Dorg.apache.jcs.auxiliary.disk.indexed.Index= e dDiskCacheAttributes jcs.auxiliary.DC.attributes.DiskPath=3DC:/Temp/diskcachelocal jcs.auxiliary.DC.attributes.maxKeySize=3D1000 ------------------ C2: # PRE-DEFINED CACHE REGIONS =20 jcs.region.Tasks=3DDC,RFailover jcs.region.Tasks.cacheattributes=3Dorg.apache.jcs.engine.CompositeCacheAt= t ributes jcs.region.Tasks.cacheattributes.MaxObjects=3D1000 jcs.region.Tasks.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.engine.= m emory.lru.LRUMemoryCache jcs.region.Tasks.cacheattributes.UseMemoryShrinker=3Dfalse jcs.region.Tasks.cacheattributes.MaxMemoryIdleTimeSeconds=3D3600 jcs.region.Tasks.cacheattributes.ShrinkerIntervalSeconds=3D60 jcs.region.Tasks.elementattributes=3Dorg.apache.jcs.engine.ElementAttribu= t es jcs.region.Tasks.elementattributes.IsEternal=3Dfalse jcs.region.Tasks.elementattributes.IdleTime=3D1800 jcs.region.Tasks.elementattributes.IsSpool=3Dtrue jcs.region.Tasks.elementattributes.IsRemote=3Dtrue jcs.region.Tasks.elementattributes.IsLateral=3Dfalse jcs.system.groupIdCache=3Djcs.system.groupIdCache.cacheattributes=3Dorg.a= pac he.jcs.engine.CompositeCacheAttributes jcs.system.groupIdCache.cacheattributes.MaxObjects=3D10000 jcs.system.groupIdCache.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.= e ngine.memory.lru.LRUMemoryCache # Remote RMI Cache set up to failover jcs.auxiliary.RFailover=3Dorg.apache.jcs.auxiliary.remote.RemoteCacheFact= o ry jcs.auxiliary.RFailover.attributes=3Dorg.apache.jcs.auxiliary.remote.Remo= t eCacheAttributes jcs.auxiliary.RFailover.attributes.RemoteHost=3Dlocalhost jcs.auxiliary.RFailover.attributes.RemotePort=3D2099 jcs.auxiliary.RFailover.attributes.LocalPort=3D2102 #jcs.auxiliary.RFailover.attributes.FailoverServers=3Dlocalhost:2099 jcs.auxiliary.RFailover.attributes.RemoveUponRemotePut=3Dtrue #jcs.auxiliary.RFailover.attributes.RemoteTypeName=3DREMOTE jcs.auxiliary.RFailover.attributes.GetOnly=3Dfalse #jcs.auxiliary.RFailover.attributes.GetOnly=3Dfalse #jcs.auxiliary.RFailover.attributes.RemoteServiceName=3DRemoteCache # AVAILABLE AUXILIARY CACHES =20 jcs.auxiliary.DC=3Dorg.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache= F actory jcs.auxiliary.DC.attributes=3Dorg.apache.jcs.auxiliary.disk.indexed.Index= e dDiskCacheAttributes jcs.auxiliary.DC.attributes.DiskPath=3DC:/Temp/updateclient1 jcs.auxiliary.DC.attributes.maxKeySize=3D1000 -------------- CS: registry.host=3Dlocalhost registry.port=3D2099 remote.cache.service.port=3D2099 remote.tomcat.on=3Dfalse remote.cluster.LocalClusterConsistency=3Dtrue jcs.system.groupIdCache=3DDC jcs.system.groupIdCache.cacheattributes=3Dorg.apache.jcs.engine.Composite= C acheAttributes jcs.system.groupIdCache.cacheattributes.MaxObjects=3D10000 jcs.system.groupIdCache.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.= e ngine.memory.lru.LRUMemoryCache jcs.system.groupIdCache.elementattributes=3Dorg.apache.jcs.engine.Element= A ttributes jcs.system.groupIdCache.elementattributes.IsEternal=3Dtrue jcs.system.groupIdCache.elementattributes.MaxLifeSeconds=3D3600 jcs.system.groupIdCache.elementattributes.IdleTime=3D1800 jcs.system.groupIdCache.elementattributes.IsSpool=3Dtrue jcs.system.groupIdCache.elementattributes.IsRemote=3Dfalse jcs.system.groupIdCache.elementattributes.IsLateral=3Dfalse # DEFAULT CACHE REGION =20 jcs.default=3DDC jcs.default.cacheattributes=3Dorg.apache.jcs.engine.CompositeCacheAttribu= t es jcs.default.cacheattributes.MaxObjects=3D10000 jcs.default.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.engine.memor= y .lru.LRUMemoryCache jcs.default.elementattributes.IsEternal=3Dfalse jcs.default.elementattributes.MaxLifeSeconds=3D3600 jcs.default.elementattributes.IdleTime=3D1800 jcs.default.elementattributes.IsSpool=3Dtrue jcs.default.elementattributes.IsRemote=3Dtrue jcs.default.elementattributes.IsLateral=3Dfalse # PRE-DEFINED CACHE REGIONS =20 jcs.region.Tasks=3DDC jcs.region.Tasks.cacheattributes=3Dorg.apache.jcs.engine.CompositeCacheAt= t ributes jcs.region.Tasks.cacheattributes.MaxObjects=3D1000 jcs.region.Tasks.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.engine.= m emory.lru.LRUMemoryCache jcs.region.Tasks.cacheattributes.UseMemoryShrinker=3Dfalse jcs.region.Tasks.cacheattributes.MaxMemoryIdleTimeSeconds=3D3600 jcs.region.Tasks.cacheattributes.ShrinkerIntervalSeconds=3D60 jcs.region.Tasks.elementattributes=3Dorg.apache.jcs.engine.ElementAttribu= t es jcs.region.Tasks.elementattributes.IsEternal=3Dtrue jcs.region.Tasks.elementattributes.IdleTime=3D1800 jcs.region.Tasks.elementattributes.IsSpool=3Dtrue jcs.region.Tasks.elementattributes.IsRemote=3Dtrue jcs.region.Tasks.elementattributes.IsLateral=3Dfalse # AVAILABLE AUXILIARY CACHES =20 jcs.auxiliary.DC=3Dorg.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache= F actory jcs.auxiliary.DC.attributes=3Dorg.apache.jcs.auxiliary.disk.indexed.Index= e dDiskCacheAttributes jcs.auxiliary.DC.attributes.DiskPath=3DC:/Temp/diskcacheremote/ jcs.auxiliary.DC.attributes.maxKeySize=3D100000 jcs.auxiliary.DC.elementattributes=3Dorg.apache.jcs.engine.ElementAttribu= t es jcs.auxiliary.DC.elementattributes.IsEternal=3Dtrue jcs.auxiliary.DC.elementattributes.IdleTime=3D1800 jcs.auxiliary.DC.elementattributes.IsSpool=3Dtrue jcs.auxiliary.DC.elementattributes.IsRemote=3Dtrue jcs.auxiliary.DC.elementattributes.IsLateral=3Dfalse --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-jcs-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-jcs-dev-help@jakarta.apache.org