Jul 27th, 2007, 05:23 PM
Ibatis with Spring's DataSourceTransactionManager
We are going to use IBatis with Spring's dataSourceTransactionManager. In the spring reference, I don't have to set an specific methods for the datasourceTransactionManager (you have optional isolation,propagation, timeout etc.) However, when I read the IBatis reference, it mentions something about setting the transaction setting properties - like if you want to force a commit then you would use <transactionManager> commitRequired='true'.
The way I understand that you specify the transactionManger is by the type of transacation manager (JDBC, JTA etc..) What type would you specify for DataSourceTransactionManger? Would it be JDBC?
Second, if you specify at JDBC Type, can you then just set whatever properties you need for the transactionManger (like commitRequired='true') and it will automatically 'glue' it to the transaction manager via the datasource being used? I guess I'm confused how the data gets transferred between IBatis and Spring so that the transaction managment settings are set?
Thanks for any thoughts!