ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elangovan, Kumaravel" <kumaravel.elango...@fmr.com>
Subject programmatic transaction management in ibatis
Date Mon, 30 Jul 2007 07:24:24 GMT


We would like to implement programmatic transaction management in one
action class of our application (spring with ibatis SQL maps) as it
involves in updation of two tables.

current SqlMapConfig.properties is

	<transactionManager commitRequired="true" type="JDBC">         
		<dataSource type="JNDI">
			<property name="DataSource"

and dao.xml is

	<!-- Example SQL Maps DAO Configuration -->
		<transactionManager type="SQLMAP">
			<property name="SqlMapConfigResource"
value="ibatis/FsaPlusAdmin/SqlMapConfig.xml" />
		<dao interface="name of the interface"
implementation="name of the implementation" />

We want transaction to be remanin default except in that action
class(Here transaction has to be rolled back if updation of 1st table

As I am new to ibatis, could anyone please explain how to configure
external transaction and to use that in the action class.


View raw message