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: Programmatic sqlMapClient configuration
Date Fri, 03 Nov 2006 14:55:29 GMT
I do not think that is going to be that simple - iirc, when i last
looked at how that works, it happens at load time, not at runtime.
Setting the bit to false will not do anything unles you do it before
you load the configuration.

Larry


On 11/3/06, Guillaume Carré <guillaume.carre@gmail.com> wrote:
> Hi,
>
> I'd like to enable/disable the cache model on my sqlMapClient
> programmatically (not via the sqlMapConfig file), but I can't find a
> way to do so.
>
> I tried the following:
>
> ExtendedSqlMapClient extendedSqlMapClient = (ExtendedSqlMapClient) sqlMapClient;
> extendedSqlMapClient.getDelegate().setCacheModelsEnabled(false);
>
> (with no cacheModelsEnabled property in the sqlMapConfig file, by
> default it's on)
>
> but the caches are still on...
>
> Any idea? Thanks.
> --
> Guillaume Carré
>

Mime
View raw message