Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 3663 invoked from network); 3 Oct 2008 19:36:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 19:36:58 -0000 Received: (qmail 86552 invoked by uid 500); 3 Oct 2008 19:36:53 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 86528 invoked by uid 500); 3 Oct 2008 19:36:53 -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 86345 invoked by uid 99); 3 Oct 2008 19:36:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 12:36:52 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.128.187] (HELO fk-out-0910.google.com) (209.85.128.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 19:35:49 +0000 Received: by fk-out-0910.google.com with SMTP id b27so1766562fka.0 for ; Fri, 03 Oct 2008 12:36:11 -0700 (PDT) Received: by 10.180.222.14 with SMTP id u14mr1222164bkg.47.1223062571576; Fri, 03 Oct 2008 12:36:11 -0700 (PDT) Received: from ?192.168.0.21? (82-197-205-166.dsl.cambrium.nl [82.197.205.166]) by mx.google.com with ESMTPS id h6sm17521304nfh.21.2008.10.03.12.36.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 03 Oct 2008 12:36:11 -0700 (PDT) Message-ID: <48E6742A.90009@tigrou.nl> Date: Fri, 03 Oct 2008 21:36:10 +0200 From: Rob Sonke User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: how do I get the handle to my CacheModel... References: <19804087.post@talk.nabble.com> In-Reply-To: <19804087.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I don't know how to do that with properties but you can do it programmatically by adding a flushstatement: daoObject.getSqlMapExecutorDelegate().getCacheModel(modelName).addFlushTriggerStatement("Foo.insertFoo"); Never tried it actually but it should work. Shantanu Upadhyaya wrote: > Either my search skills are getting bad or the iBatis documentation is not > adequate. > > 1. I'd like to call setFlushInterval(..) using a configurable parameter > which can change while the application is running. How do I get the handle > to my already defined Cache model ? > > 2. How do I add a parameter placeholder in my SQL Map file ...I would want > something like this ? > > > > > > I'm using > org.springframework.beans.factory.config.PropertyPlaceholderConfigurer in my > databaseContext.xml. That works with .... . But it will not > work with the SQL Map file. > > 3. Is there any way to keep the cache ready before being called for the > first time ? Anything in iBATIS to support that ? I could configure a > startup listener with the app server, but I'm just exploring options for > now. > > Thanks ! >