AbstractRoutingDataSource & Transactional Managers
I currently have a program which has two data sources. Each of the data source is tied to one transactional manager. 

	<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="ds1" />
	</bean>

	<bean id="transactionManager2" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="ds2" />
	</bean>

If I had a function that accesses both datasource and an error occurs, if one datasource rollbacks would the second data source would also rollback? 

Thanks!


AbstractRoutingDataSource & Transactional Managers
===

I currently have a program which has two data sources. Each of the data source is tied to one transactional manager. 

	<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="ds1" />
	</bean>

	<bean id="transactionManager2" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="ds2" />
	</bean>

If I had a function that accesses both datasource and an error occurs, if one datasource rollbacks would the second data source would also rollback? 

Thanks!

