Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 67143 invoked from network); 4 Mar 2010 02:12:41 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Mar 2010 02:12:41 -0000 Received: (qmail 60259 invoked by uid 500); 4 Mar 2010 02:12:33 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 60220 invoked by uid 500); 4 Mar 2010 02:12:32 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 60212 invoked by uid 99); 4 Mar 2010 02:12:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 02:12:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.191.125.81] (HELO web38705.mail.mud.yahoo.com) (209.191.125.81) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 04 Mar 2010 02:12:22 +0000 Received: (qmail 19245 invoked by uid 60001); 4 Mar 2010 02:12:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1267668720; bh=PIieGAKQwZAoGIs+MNOceoIwer183G9otGeAmB+v+KU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=YTI/Sy6VKJ7Ppw89ZLoPm3wwHTV7yqZMnMlVm/6Cu0D5McUIaek6mCmCH40m2pRyD46GEXgY5U2DR8PNryZauNTafnxkD0/rXpkPzzHa4o6no03jRVKkde+uj+d6jvl/s1XecBjMqzt1dX/eQKHlZHEfbQZD8M9LOWN36LTBQWM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=u16s915D0hNas1owR5S5Thrcb4yYSI1KFDNcZ2NTIbC7Xy/j/7nd/uiBEpjbkokPkFADaEbwC9u1qiqy+rN7429TIVsY/kNEebcxv+PavuG/gAuA3o2WAoIeecujwq1F15q0ojQoCbxvOyIIvXMaJeqkjgJw7cMx2Rfg/sn+quU=; Message-ID: <820363.18997.qm@web38705.mail.mud.yahoo.com> X-YMail-OSG: hMWAml8VM1lcftU742E5sRlAl0xXBvZzVtiSVTvmNNCn5FvBAY7e5vDBq8uCL7pkVGOgJowi7HN47KnvUUGz2VNntH3mWrniB__ajY1h1ufPUyB9BjAkAV3xaQmFC4IY7Dqc7pKG4viStWYEzRu3DiyxaapnJfC3VmsPJo8JUSFRrkJht9vStDkxkSnQVz_1Dbfm6Fh.rxVXO8DvpWoEOuJzCGfzqPRoPKeAhTVK_EVYPp3noqtJ7isnhF30w8_hOsAuiihVBPyGjgh6ACa.8.3uohyoPhextQeRP_Bga7yNnra7avnZVZDzCoY2fsbIjYQGjD_EcdIetxUnLqgInqXJUD9DWy5H52xRyh1tRMJ7sBIMJFCPW1ZAswIFAhnu Received: from [208.120.39.220] by web38705.mail.mud.yahoo.com via HTTP; Wed, 03 Mar 2010 18:12:00 PST X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Wed, 3 Mar 2010 18:12:00 -0800 (PST) From: Aaron Smuts Subject: Re: Remote cache is only working one way To: JCS Users List In-Reply-To: <49F24C44A17C9F478B7FA053CA3F1F076A3BDED3@EXMB1.nighthawkrad.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I'm not sure what's going on, but you don't have the remote listener fully = configured on the client side.=0A=0AAaron=0A=0A--- On Tue, 2/23/10, Brian E= ngen wrote:=0A=0A> From: Brian Engen =0A> Subject: Remote cache is only working one way=0A> To: "jc= s-users@jakarta.apache.org" =0A> Cc: "Mike Ge= ntili" =0A> Date: Tuesday, February 23, 2010, 12= :17 PM=0A> Hey all,=0A> =0A> I'm struggling to get my remote cache working= =0A> correctly.=A0 My clients can connect and add listeners to=0A> my remot= e cache server, but my remote cache server is not=0A> publishing any events= when a change is made to any of that=0A> server's caches.=A0 I think this = may be because when the=0A> remote cache servlet starts up, it looks like i= t parses the=0A> cache.ccf file for any existing cache regions to listen=0A= > to.=A0 With my config, there are none pre-defined.=A0=0A> I always use th= e default region to create my caches=0A> dynamically.=A0 I need some way fo= r these dynamic caches=0A> to publish change events to my remote cache serv= er so it=0A> can, in turn, publish those events to my clients.=0A> =0A> I'v= e tried such things as adding a Remote Cache to my=0A> server's default con= fig that's connected to the remote cache=0A> server at localhost where GetO= nly is false and=A0 Receive=0A> is false, but have always gotten errors on = startup - maybe I=0A> was just configuring it wrong?=A0 I've also tried=0A>= programmatically getting the remote cache manager whenever I=0A> create on= e of my dynamic disk caches and adding a=0A> listener.=A0 This worked for p= ublishing updates, but=0A> gets/puts no longer worked.=A0 Thanks in advance= for any=0A> help or guidance you can provide.=A0 My client and server=0A> = cache.ccf files are below.=A0 If any code I'm using would=0A> be helpful, l= et me know and I'd be happy to provide it.=0A> =0A> =3D=3D=3D=3D=3D CLIENT = =3D=3D=3D=3D=3D=0A> #DEFAULT CLIENT CACHE REGION=0A> jcs.default=3DDC, RFai= lover=0A> jcs.default.cacheattributes=3Dorg.apache.jcs.engine.CompositeCach= eAttributes=0A> jcs.default.cacheattributes.MemoryCacheName=3Dorg.apache.jc= s.engine.memory.lru.LRUMemoryCache=0A> jcs.default.cacheattributes.UseMemor= yShrinker=3Dtrue=0A> jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds= =3D3600=0A> jcs.default.cacheattributes.MaxObjects=3D50=0A> =0A> # PRE-DEFI= NED CACHE REGIONS=0A> jcs.region.runtime=3DDCR=0A> jcs.region.runtime.cache= attributes=3Dorg.apache.jcs.engine.CompositeCacheAttributes=0A> jcs.region.= runtime.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.engine.memory.lru.= LRUMemoryCache=0A> jcs.region.runtime.cacheattributes.UseMemoryShrinker=3Dt= rue=0A> jcs.region.runtime.cacheattributes.MaxMemoryIdleTimeSeconds=3D3600= =0A> jcs.region.runtime.cacheattributes.MaxObjects=3D50=0A> jcs.region.runt= ime.cacheattributes.UseRemote=3Dfalse=0A> =0A> #=A0 AVAILABLE AUXILIARY CAC= HES=0A> ## Disk Cache - Default=0A> jcs.auxiliary.DC=3Dorg.apache.jcs.auxil= iary.disk.indexed.IndexedDiskCacheFactory=0A> jcs.auxiliary.DC.attributes= =3Dorg.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes=0A> jcs= .auxiliary.DC.attributes.DiskPath=3D${user.home}/cache/client=0A> jcs.auxil= iary.DC.attributes.MaxKeySize=3D15000=0A> =0A> ## Disk Cache - Runtime=0A> = jcs.auxiliary.DCR=3Dorg.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheF= actory=0A> jcs.auxiliary.DCR.attributes=3Dorg.apache.jcs.auxiliary.disk.ind= exed.IndexedDiskCacheAttributes=0A> jcs.auxiliary.DCR.attributes.DiskPath= =3D${user.home}/cache/client=0A> jcs.auxiliary.DCR.attributes.ClearDiskOnSt= artup=3Dtrue=0A> jcs.auxiliary.DCR.attributes.MaxKeySize=3D15000=0A> =0A> #= # Remote RMI Cache=0A> jcs.auxiliary.RFailover=3Dorg.apache.jcs.auxiliary.r= emote.RemoteCacheFactory=0A> jcs.auxiliary.RFailover.attributes=3Dorg.apach= e.jcs.auxiliary.remote.RemoteCacheAttributes=0A> jcs.auxiliary.RFailover.at= tributes.FailoverServers=3Dlocalhost:1201=0A> jcs.auxiliary.RFailover.attri= butes.RemoveUponRemotePut=3Dfalse=0A> jcs.auxiliary.RFailover.attributes.Ge= tOnly=3Dtrue=0A> jcs.auxiliary.RFailover.attributes.Receive=3Dtrue=0A> =0A>= =3D=3D=3D=3D=3D SERVER =3D=3D=3D=3D=3D=0A> ###############################= ###############################=0A> ################## REMOTE SERVER CONFIG= =0A> ######################=0A> # Registry used to register and provide the= =0A> IRmiCacheService service.=0A> registry.host=3Dlocalhost=0A> registry.p= ort=3D1201=0A> remote.cache.service.port=3D1201=0A> remote.cache.attributes= .RemoveUponRemotePut=3Dfalse=0A> remote.cache.attributes.GetOnly=3Dfalse=0A= > remote.cache.attributes.Receive=3Dfalse=0A> remote.cluster.LocalClusterCo= nsistency=3Dtrue=0A> =0A> #################################################= #############=0A> ################## DEFAULT CACHE REGION=0A> #############= ########=0A> # sets the default aux value for any non configured caches=0A>= jcs.default=3DDC=0A> jcs.default.cacheattributes=3Dorg.apache.jcs.engine.C= ompositeCacheAttributes=0A> jcs.default.cacheattributes.MemoryCacheName=3Do= rg.apache.jcs.engine.memory.lru.LRUMemoryCache=0A> jcs.default.cacheattribu= tes.MaxObjects=3D100=0A> jcs.default.cacheattributes.UseMemoryShrinker=3Dtr= ue=0A> jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3D3600=0A> jcs.= default.cacheattributes.ShrinkerIntervalSeconds=3D60=0A> jcs.default.cachea= ttributes.UseRemote=3Dfalse=0A> =0A> ######################################= ########################=0A> ################## CACHE REGIONS AVAILABLE=0A>= ###################=0A> # Regions preconfirgured for caching=0A> =0A> # NO= NE - Always use default=0A> =0A> =0A> # Primary Disk Cache-- faster than th= e rest because of=0A> memory key storage=0A> jcs.auxiliary.DC=3Dorg.apache.= jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory=0A> jcs.auxiliary.DC.att= ributes=3Dorg.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes= =0A> jcs.auxiliary.DC.attributes.DiskPath=3D${user.home}=0A> /cache/server= =0A> jcs.auxiliary.DC.attributes.ClearDiskOnStartup=3Dtrue=0A> jcs.auxiliar= y.DC.attributes.MaxKeySize=3D150000=0A> --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org