事务管理机制
iBatis的事务管理机制
<transactionManager type="JDBC">
<dataSource type="simple"> //数据库连接池?
<property name="JDBC.Driver" value="...">
...
数据库驱动,URL,用户名密码配置
...
<property name="Pool.MaximumIdleConnections" value="5"/>
<property name="Pool.MaximumCheckoutTime"
value="120000"/>
<property name="Pool.TimeToWait" value="500"/>
<property name="Pool.PingQuery" value="select 1 from
ACCOUNT"/>
<property name="Pool.PingEnabled" value="false"/>
<property name="Pool.PingConnectionsOlderThan"
value="1"/>
<property name="Pool.PingConnectionsNotUsedFor"
value="1"/>
</dataSource>
</transactionManager>