Created
February 3, 2020 08:53
-
-
Save sophea/a06d8c8c7bfcf19de1672e7e186bfd0b to your computer and use it in GitHub Desktop.
multi chained Transactions Manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Mak Sophea | |
* @date : 1/15/2020 | |
**/ | |
@Configuration | |
public class TransactionManagerConfig { | |
@Bean(name = "chainedTransactionManager") | |
public ChainedTransactionManager transactionManager ( | |
@Qualifier("sqlServerTransactionManager") PlatformTransactionManager sqlTransactionManager, | |
@Qualifier("oracleTransactionManager") PlatformTransactionManager oracleTransactionManager) { | |
return new ChainedTransactionManager(sqlTransactionManager, oracleTransactionManager); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment