You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have support for using the @Transactional annotation in a multipe TransactionManager environment, providing declarative transaction demarcation support for multiple SessionFactories. One idea suggested in the forum link is to create the multiple TransactionManager beans in the Application Context XML file, and give them unique names - then add a field to the @Transactional annotation, so we could then reference the TransactionManager by name in the Service method.
This has already been implemented for Spring 3.0 and is available in recent 3.0 RC1 snapshots: using @Transactional value Strings for differentiating among multiple PlatformTransactionManagers. Feel free to give it an early try :-)
Tom Spencer opened SPR-5896 and commented
It would be great to have support for using the
@Transactional
annotation in a multipe TransactionManager environment, providing declarative transaction demarcation support for multiple SessionFactories. One idea suggested in the forum link is to create the multiple TransactionManager beans in the Application Context XML file, and give them unique names - then add a field to the@Transactional
annotation, so we could then reference the TransactionManager by name in the Service method.For example:
Then, in the application code:
Affects: 2.5.6
Reference URL: http://forum.springsource.org/showthread.php?t=27754
The text was updated successfully, but these errors were encountered: