The cache enabled/disabled flag causes the SqlMapClient to be built differently. So changing it after the fact won't do anything.
Unfortunately programmatically configuring iBATIS at this time is an absolute nightmare. You'd be better off generating the XML configuration you're interested in and then loading it....
My apologies for this pimple on the iBATIS framework. It's something that I'm actually working on right now...(tinkering with some options).
cheers,
Clinton.
On 11/3/06,
Guillaume Carré <[EMAIL PROTECTED]> 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é
