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

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

Introduction

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

Prototype

public synchronized void setXaDataSourceInstance(XADataSource xaDataSourceInstance) 

Source Link

Document

Sets the XADataSource instance used by the XAConnectionFactory.

Note: this method currently has no effect once the pool has been initialized.

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;
}