RE: [Opensymphony-oscache] help with clustering
"Neos 76" <[email protected]> Mon, 09 May 2005 21:43:18 +0200
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <[email protected]> |
Hi, thx for your response. Yes, flush messages are send to all nodes of cluster. I think oscache is not the product I'm looking for :(( Thx Neos >From: "Thomas Sasala" <[email protected]> >Reply-To: [email protected] >To: [email protected] >Subject: RE: [Opensymphony-oscache] help with clustering >Date: Mon, 09 May 2005 14:06:27 +0000 >MIME-Version: 1.0 >X-Originating-IP: [70.187.214.227] >X-Originating-Email: [[email protected]] >X-Sender: [email protected] >Received: from dev.java.net ([64.125.133.206]) by mc11-f6.hotmail.com with >Microsoft SMTPSVC(6.0.3790.211); Mon, 9 May 2005 07:06:35 -0700 >Received: (qmail 29846 invoked by uid 5000); 9 May 2005 14:06:33 -0000 >Received: (qmail 29830 invoked from network); 9 May 2005 14:06:33 -0000 >X-Message-Info: JGTYoYF78jEU0WDlixyZzY4rgYtbl20fvHQomkgDzJ0= >Mailing-List: contact [email protected]; run by ezmlm >Precedence: bulk >X-No-Archive: yes >list-help: <mailto:[email protected]> >list-unsubscribe: <mailto:[email protected]> >list-post: <mailto:[email protected]> >Delivered-To: mailing list [email protected] >X-OriginalArrivalTime: 09 May 2005 14:06:27.0980 (UTC) >FILETIME=[4B013CC0:01C554A0] >Return-Path: [email protected] > >Unless something has changed in the last couple of weeks, to the best of my >knowledge, oscache does not handle distributed object tracking. That is, >oscache does not serialize cached objects and distribute them across all >caches. The only messages sent to distributed caches are flush messages. >Try sending a flush message and see what happens. My results have been >mixed (e.g., unreliable reception of flush messages) using jgroups and >multicast. However, I have not had time to investigate the problem well >enough to report the issue (if there is one). > >-Tom > >>From: "Neos 76" <[email protected]> >>Reply-To: [email protected] >>To: [email protected] >>Subject: [Opensymphony-oscache] help with clustering >>Date: Mon, 09 May 2005 02:32:02 +0200 >> >>Hi, >> >>I'm new to OSCache. I configured OSCache (2.1.1) to use JGroups to >>broadcast cahce events. This is my oscahce.properties file (in >>WEB-INF/classes folder): >> >>cache.event.listeners=com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener, >> \ >> >>com.opensymphony.oscache.extra.CacheEntryEventListenerImpl, >>\ >> >>com.opensymphony.oscache.extra.CacheMapAccessEventListenerImpl, >>\ >> com.opensymphony.oscache.extra.ScopeEventListenerImpl >> >>cache.memory=true >>cache.capacity=10 >>cache.algorithm=com.opensymphony.oscache.base.algorithm.LRUCache >>cache.blocking=false >> >>Cluster looks like to be ok. In log file I see >> >>... >>16:58:31,956 INFO [JavaGroupsBroadcastingListener] JavaGroups clustering >>support started successfully >> >>I see also that two app are joined to the cluster >> >>I'm working with two servlet container (Caucho Resin) on two phisical >>server. >>The problem is that using GenralCacheAdministrator (I save it in a static >>field), the cache on the first server is not distributed on second server. >>I dont'see notification messages. >>I do simply this: >> >>on first server I create an object and put the object in cache with key >>"mykey1". On second server I get object stored in key "mykey1" but I have >>a NeedsRefreshException. >> >>code 1: >> >>CacheManager cacheManager = CacheManager.getInstance(); // my class to >>save GeneralCacheAdministrator >>GeneralCacheAdministrator cacheAdm = >>cacheManager.getGeneralCacheAdministrator(); >>Car car = new Car(carId,carColor); >>Cache cache = cacheAdm.getCache(); >>cacheAdm.putInCache("Car1",car); >> >>code 2: >> >>CacheManager cacheManager = CacheManager.getInstance(); >>GeneralCacheAdministrator cacheAdm = >>cacheManager.getGeneralCacheAdministrator(); >>Cache cache = cacheAdm.getCache(); >>Car carInCache = (Car) cacheAdm.getFromCache("Car1"); // throws >>NeedsRefreshException >> >>Can you tell me where is my mistake? I'm being crazy... >>Thank you in aadvance >>Neos >> >>_________________________________________________________________ >>Express yourself instantly with MSN Messenger! Download today it's FREE! >>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [email protected] >>For additional commands, e-mail: [email protected] >> > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] > _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/