Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 4660 invoked from network); 15 Jul 2009 20:26:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 20:26:20 -0000 Received: (qmail 56082 invoked by uid 500); 15 Jul 2009 20:26:29 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 56060 invoked by uid 500); 15 Jul 2009 20:26:29 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 56052 invoked by uid 99); 15 Jul 2009 20:26:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 20:26:29 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.28.87.18] (HELO peasmtpdns01.converge.com) (64.28.87.18) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 20:26:19 +0000 Received: from PE-EVS.converge.com (pat_userdmz.converge.com [172.28.1.249]) by peasmtpdns01.converge.com (8.14.2/8.12.10) with ESMTP id n6FKPlp1018558 for ; Wed, 15 Jul 2009 16:25:57 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA058A.6F9E4FF2" Subject: RE: Force cache refresh + precaching Date: Wed, 15 Jul 2009 16:25:46 -0400 Message-ID: <6892C825A8016D4681D01CF07391E4529BD413@PE-EVS.converge.com> In-Reply-To: <4a5e2db7.1818d00a.11f4.ffffc3a9@mx.google.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Force cache refresh + precaching Thread-Index: AcoFf0znR2dnGndORYi4+5f1n95QvAAAGCGAAACe/NAAAguZwA== From: "Vinaya Tirikkovalluru" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CA058A.6F9E4FF2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-NAIMIME-Disclaimer: 1 X-NAIMIME-Modified: 1 Is there a specific reason why do you want to do that? Because, the first time you access the object, it will be created and stored in cache =20 =20 =20 ________________________________ From: Anindya Mukherjee [mailto:anindya.mukherjee@gmail.com]=20 Sent: Wednesday, July 15, 2009 3:28 PM To: user-java@ibatis.apache.org Subject: RE: Force cache refresh + precaching =20 Hi Vinaya, =20 Thanks a lot for the help. I actually meant during app load ( when our application is booting ). =20 - Anindya =20 From: Vinaya Tirikkovalluru [mailto:vinaya.tirikkovalluru@converge.com]=20 Sent: July-16-09 12:41 AM To: user-java@ibatis.apache.org Subject: RE: Force cache refresh + precaching =20 Hi, =20 What do you mean by before app load? =20 To forcefully refresh the cache, you can use =20 getSqlMapClient().flushDataCache("sqlmap.queryname"); =20 Vinaya =20 ________________________________ From: Anindya Mukherjee [mailto:anindya.mukherjee@gmail.com]=20 Sent: Wednesday, July 15, 2009 3:06 PM To: user-java@ibatis.apache.org Cc: anindya.mukherjee@gmail.com Subject: Force cache refresh + precaching =20 Hi , =20 We have started using iBatis caches. To start with we are using an LRU cache. However we have an issue , the underlying tables in our db can be updated by manual inserts ( it is a shared db used by a number of apps ). =20 Now we need a mechanism whereby we can forcefully refresh the iBatis cache. Can anybody help us with this ? Also the ibatis caches are lazy loading ( it loads on demand ) , is it possible to somehow precache some data during app load. =20 - Thanks, - Anindya ________________________________ This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.=20 This electronic message is intended only for the use of the individual(s)= or entity(ies) named above and may contain information which is privileg= ed and/or confidential. If you are not the intended recipient, be aware = that any disclosure, copying, distribution, dissemination or use of the c= ontents of this message is prohibited. If you received this message in e= rror, please notify the sender immediately. ------_=_NextPart_001_01CA058A.6F9E4FF2 Content-Type: text/HTML; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-NAIMIME-Disclaimer: 1 X-NAIMIME-Modified: 1

Is there a specific reason why do yo= u want to do that?

Because, the first time you access t= he object, it will be created and stored in cache

 

 

 


From: Anindy= a Mukherjee [mailto:anindya.mukherjee@gmail.com]
Sent: Wednesday, July 15, = 2009 3:28 PM
To: user-java@ibatis.apach= e.org
Subject: RE: Force cache r= efresh + precaching

 

Hi Vinaya,

 <= /p>

Thanks a lot for the help. I act= ually meant during app load ( when our application is booting ).

 <= /p>

-&nb= sp;         Anindya

 <= /p>

From: Vinaya Tirikkovalluru [mailto:vinaya.tirikkovalluru@converge.com]
Sent: July-16-09 12:41 AM<= br> To: user-java@ibatis.apach= e.org
Subject: RE: Force cache r= efresh + precaching

 

Hi,

 

What do you mean by before app load?=

 

To forcefully refresh the cache, you= can use

 

getSqlMapClient().flushDataCache(&qu= ot;sqlmap.queryname");

 

Vinaya

 


From: Anindy= a Mukherjee [mailto:anindya.mukherjee@gmail.com]
Sent: Wednesday, July 15, = 2009 3:06 PM
To: user-java@ibatis.apach= e.org
Cc: anindya.mukherjee@gmai= l.com
Subject: Force cache refre= sh + precaching

 

Hi ,

 

We have started using iBatis caches. To start with we are using a= n LRU cache. However we have an issue ,  the underlying tables in our db c= an be updated by manual inserts ( it is a shared db used by a number of apps ).=

 

Now we need a mechanism whereby we can forcefully refresh the iBa= tis cache. Can anybody help us with this ? Also the ibatis caches are lazy lo= ading ( it loads on demand ) , is it possible to somehow precache some data dur= ing app load.

 

-=           Thanks,

-=           Anindya


This electronic message is intended= only for the use of the individual(s) or entity(ies) named above and may conta= in information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If yo= u received this message in error, please notify the sender immediately.


This electronic message is intended only for the use of the individual(s)= or entity(ies) named above and may contain information which is privileg= ed and/or confidential. If you are not the intended recipient, be aware = that any disclosure, copying, distribution, dissemination or use of the c= ontents of this message is prohibited. If you received this message in e= rror, please notify the sender immediately.

------_=_NextPart_001_01CA058A.6F9E4FF2--