List of usage examples for org.apache.commons.dbcp2.managed BasicManagedDataSource setXaDataSourceInstance
public synchronized void setXaDataSourceInstance(XADataSource xaDataSourceInstance)
Sets the XADataSource instance used by the XAConnectionFactory.
Note: this method currently has no effect once the pool has been initialized.
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; }