Hi, I am wondering if iBatis SqlMap implementations in Spring need to be flushed once a transaction is committed? It isn't called explicitly (I think) by anything but SqlMapClient extends com.ibatis.sqlmap.client.SqlMapTransactionManager, and you can do:
getSqlMapClientTemplate().getSqlMapClient().flushD ataCache();
If so, is the best placement of it in a custom SqlMapClientTemplate so that you don't need to put it in your DAO interface and implement it in all DAO's?
like:
public class MySqlMapClientTemplate{
public void flushDataSource(){
this.getSqlMapClient().flushDataCache();
}
thanks!


Reply With Quote