我有一个带有支持事务的 ndbcluster 引擎的 Mysql 服务器。
我想在带有 Spring JDBC 框架 3.0.6 的 tomcat 6 下对我的 Java 应用程序使用事务。
我在 web.xml 中配置了一个名为 idDataSource 的 DataSource bean。
我添加了以下内容:
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="idDataSource"/>
</bean>
创建 txManager bean。
我在以下网址阅读了文档:http: //static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/transaction.html
不幸的是,我真的很迷茫。我知道我可能需要实现某种事务接口,但我不知道是哪个。任何信息将不胜感激!!!
谢谢你