ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Overrule IBATIS caching
Date Fri, 24 Nov 2006 16:04:09 GMT
Guillaume is correct. The settings element is not pre-processed like
other elements are.

..although I am not sure why. I'll look at that and see if I can fix it.

Larry


On 11/24/06, Guillaume Carré <guillaume.carre@gmail.com> wrote:
> 2006/11/24, Tom Stroobants <Tom.Stroobants@persgroep.be>:
> >
> > Hi All,
> >
> > We have an application that runs on different servers ...
> > On one server we want to overrule to IBATIS caching like this:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE sqlMapConfig PUBLIC "-//iBATIS.com//DTD SQL Map Config
> > 2.0//EN" "http://www.ibatis.com/dtd/sql-map-config-2.dtd">
> >
> > <sqlMapConfig>
> >     <properties resource="ibatis.properties"/>
> >     <settings cacheModelsEnabled="${ibatis.cacheModelsEnabled}"/>
> >
> >     ...
> >
> > </sqlMapConfig>
> >
> > We also have an ibatis.properties file which contains the key
> > ibatis.cacheModelsEnabled = true
> >
> > But this doesn't seem to work ...
> >
> > Any advice ?
>
> Hello,
>
> there is no way to overrule caching, with ${} properties, or with the API.
>
> I posted almost the same question here 2 weeks ago.
> http://www.mail-archive.com/user-java@ibatis.apache.org/msg06763.html
> --
> Guillaume Carré
>

Mime
View raw message