Example usage for org.springframework.jdbc.datasource TransactionAwareDataSourceProxy setTargetDataSource

List of usage examples for org.springframework.jdbc.datasource TransactionAwareDataSourceProxy setTargetDataSource

Introduction

In this page you can find the example usage for org.springframework.jdbc.datasource TransactionAwareDataSourceProxy setTargetDataSource.

Prototype

public void setTargetDataSource(@Nullable DataSource targetDataSource) 

Source Link

Document

Set the target DataSource that this DataSource should delegate to.

Usage

From source file:com.apress.prospringintegration.messageflow.workflow.ActivitiProcessEngineConfiguration.java

@Bean
public DataSource targetDataSource() {
    TransactionAwareDataSourceProxy transactionAwareDataSourceProxy = new TransactionAwareDataSourceProxy();
    transactionAwareDataSourceProxy.setTargetDataSource(dataSource);
    return transactionAwareDataSourceProxy;
}