可通过spring-ldap的ContextSourceAndDataSourceTransactionManager实现。
类路径=org.springframework.ldap.transaction.compensating.manager.ContextSourceAndDataSourceTransactionManager
配置如下:
<!-- 定义spring-ldap事务管理器 -->
<bean id="transactionManager_ContextSourceAndDataSource"
class="org.springframework.ldap.transaction.compensating.manager.ContextSourceAndDataSourceTransactionManager">
<property name="contextSource">
<ref bean="contextSource" />
</property>
<property name="dataSource">
<ref bean="dataSourceOracle" />
</property>
<property name="dataSource">
<ref bean="dataSourceMysql" />
</property>
</bean>
项目代码请到csdn上下载:
使用Spring-LDAP实现事务管理
本文介绍了如何通过Spring-LDAP的ContextSourceAndDataSourceTransactionManager类实现事务管理,并提供了具体的配置示例。
690

被折叠的 条评论
为什么被折叠?



