org.springframework.data.transaction.ChainedTransactionManager Java Examples

The following examples show how to use org.springframework.data.transaction.ChainedTransactionManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DelegatingPlatformTransactionManager.java    From teiid-spring-boot with Apache License 2.0 5 votes vote down vote up
void check() throws TransactionException {
    if (this.delegate == null) {
        Assert.notNull(tms, "No registered data sources found");
        Assert.isTrue(!tms.isEmpty(), "No registered data sources found");
        this.delegate = new ChainedTransactionManager(tms.toArray(new PlatformTransactionManager[tms.size()]));
    }
}
 
Example #2
Source File: GlobalTxConfiguration.java    From radman with MIT License 4 votes vote down vote up
@Bean
PlatformTransactionManager transactionManager() {
    return new ChainedTransactionManager(radiusTxManager, radmanTxManager);
}