public class PooledXADataSourceWrapper extends AbstractXADataSourceWrapper
AbstractXADataSourceWrapper
implementation that uses BasicManagedDataSource
to wrap an
XADataSource
.
BasicManagedDataSource
provides a pooling support which is not available in the Narayana transactional
driver.
Constructor and Description |
---|
PooledXADataSourceWrapper(NarayanaProperties properties,
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule,
TransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
protected DataSource |
wrapDataSourceInternal(XADataSource xaDataSource)
Wrap the provided data source and initialize the connection pool if its initial size is higher than 0.
|
wrapDataSource
public PooledXADataSourceWrapper(NarayanaProperties properties, com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule xaRecoveryModule, TransactionManager transactionManager)
protected DataSource wrapDataSourceInternal(XADataSource xaDataSource) throws Exception
wrapDataSourceInternal
in class AbstractXADataSourceWrapper
xaDataSource
- data source that needs to be wrappedException
- if data source copy or connection pool initialization has failed.Copyright © 2019. All rights reserved.