Example usage for org.apache.commons.dbcp2.managed BasicManagedDataSource setTransactionManager

List of usage examples for org.apache.commons.dbcp2.managed BasicManagedDataSource setTransactionManager

Introduction

In this page you can find the example usage for org.apache.commons.dbcp2.managed BasicManagedDataSource setTransactionManager.

Prototype

public void setTransactionManager(TransactionManager transactionManager) 

Source Link

Document

Sets the required transaction manager property.

Usage

From source file:org.everit.blobstore.jdbc.test.AbstractJdbcBlobstoreTest.java

protected BasicManagedDataSource createManagedDataSource(final GeronimoTransactionManager transactionManager,
        final XADataSource xaDataSource) {
    BasicManagedDataSource lManagedDataSource = new BasicManagedDataSource();
    lManagedDataSource.setTransactionManager(transactionManager);
    lManagedDataSource.setXaDataSourceInstance(xaDataSource);
    return lManagedDataSource;
}