ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jatan Porecha <porecha...@gmail.com>
Subject Cache does not flush when mappings are loaded through SqlMapClientFactoryBean
Date Fri, 20 Mar 2009 22:36:23 GMT
When I configure *iBATIS* sql maps to get loaded through
SqlMapClientFactoryBean the chache models are not loaded properly.

I have confiugred my *iBATIS* SQL Map config and sql map files as following,

<bean id="sqlMap"
class="org.springframework.orm.ibatis.SqlMapClient FactoryBean">
<property name="configLocation">
<property name="mappingLocations"
value="classpath:com/app/business/sqlmaps/*SQLMap.xml" />
<property name="dataSource" ref="dataSource" />

I tried debugging *iBATIS* code and ultimately found out that whenever the
mappings are loaded through SqlMapClientFactoryBean, *iBATIS*'s
wireUpCacheModel is called before the actual cacheModels are built.
Therefore the cache does not get flushed on the specified statements.
However if I load SQL map files through Sql Map config file everything works
fine !


View raw message