Return-Path: Delivered-To: apmail-portals-jetspeed-user-archive@www.apache.org Received: (qmail 46402 invoked from network); 6 Nov 2007 14:02:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2007 14:02:34 -0000 Received: (qmail 26780 invoked by uid 500); 6 Nov 2007 14:02:16 -0000 Delivered-To: apmail-portals-jetspeed-user-archive@portals.apache.org Received: (qmail 26757 invoked by uid 500); 6 Nov 2007 14:02:16 -0000 Mailing-List: contact jetspeed-user-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Users List" Delivered-To: mailing list jetspeed-user@portals.apache.org Received: (qmail 26746 invoked by uid 99); 6 Nov 2007 14:02:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 06:02:16 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yang.sie@fmr.com designates 192.223.178.26 as permitted sender) Received: from [192.223.178.26] (HELO maillnx-us311.fmr.com) (192.223.178.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 14:02:19 +0000 Received: from MSGMROSM02WIN.dmn1.fmr.com (MSGMROSM02WIN.dmn1.fmr.com [172.26.31.170]) by maillnx-us311.fmr.com (Switch-3.1.11/Switch-3.1.7) with SMTP id lA6E1mqg012319 for ; Tue, 6 Nov 2007 09:01:48 -0500 Received: from MSGMROIV01WIN.DMN1.FMR.COM (172.26.31.106) by MSGMROSM02WIN.dmn1.fmr.com (Sigaba Gateway v4.1) with ESMTP id 163872769; Tue, 06 Nov 2007 09:01:47 -0500 Received: from MSGMROIM01WIN.DMN1.FMR.COM ([172.26.2.194]) by MSGMROIV01WIN.DMN1.FMR.COM with SMTP_server; Tue, 06 Nov 2007 09:01:47 -0500 Received: from msgmroclm2win.fmr.com ([10.37.181.21]) by MSGMROIM01WIN.DMN1.FMR.COM with Microsoft SMTPSVC(5.0.2195.6713); Tue, 6 Nov 2007 09:01:19 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Jetspeed Cache Question Date: Tue, 6 Nov 2007 09:01:19 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Jetspeed Cache Question Thread-Index: AcggOuw+xCX+48bSR328pLpTLv2+pAAQSv8A From: "Sie, Yang" To: "Jetspeed Users List" X-OriginalArrivalTime: 06 Nov 2007 14:01:19.0607 (UTC) FILETIME=[81858070:01C8207D] X-Virus-Checked: Checked by ClamAV on apache.org Thank you David: By setting shared to true or using Jetspeed environment worked and I got numbers this time. Thank you. The other day, I also tried to load the 'cacheManager' bean from spring and it also didn't give me numbers. Seemed that was another instance (???) and it didn't give me the one from Jetspeed environment. Just let you know for your info. As long as it works now, I can move on from here... Thank you. ---Yang >-----Original Message----- >From: David Sean Taylor [mailto:david@bluesunrise.com]=20 >Sent: Tuesday, November 06, 2007 1:03 AM >To: Jetspeed Users List >Subject: Re: Jetspeed Cache Question > > > >On Nov 5, 2007, at 1:30 PM, Sie, Yang wrote: > >> I had my page loaded with data, my portlet sizes and my=20 >other personal >> data are correctly displayed, they were all from preferences. So I >> thought my preferences would be loaded by then. I just now went to =20 >> edit >> to change some preference, and then run that section of code=20 >again, it >> again returned me all zeros. > >by default Spring doesn't share its CacheManager (you can set the =20 >"share" property to true on the cacheManager bean in the Spring =20 >config (cache.xml) >Or, using the Spring container's cache manager will give you accurate =20 >numbers : > ><%@page import=3D"org.apache.jetspeed.Jetspeed"%> ><%@page import=3D"org.apache.jetspeed.components.ComponentManager"%> > > <% >// CacheManager ehCacheManager=3DCacheManager.getInstance(); > CacheManager ehCacheManager=3D(CacheManager)=20 >Jetspeed.getComponentManager().getComponent("cacheManager"); > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org >For additional commands, e-mail: jetspeed-user-help@portals.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-user-help@portals.apache.org