@Deprecated @ConfigurationProperties(prefix="spring.jta.bitronix.datasource") public class PoolingDataSourceBean extends bitronix.tm.resource.jdbc.PoolingDataSource implements BeanNameAware, InitializingBean
PoolingDataSource
. Provides sensible defaults and
also supports direct wrapping of a XADataSource
instance.Modifier and Type | Class and Description |
---|---|
static class |
PoolingDataSourceBean.DirectXADataSource
Deprecated.
|
Constructor and Description |
---|
PoolingDataSourceBean()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
|
bitronix.tm.resource.common.XAStatefulHolder |
createPooledConnection(Object xaFactory,
bitronix.tm.resource.common.ResourceBean bean)
Deprecated.
|
protected XADataSource |
getDataSource()
Deprecated.
|
Logger |
getParentLogger()
Deprecated.
|
void |
init()
Deprecated.
|
void |
setBeanName(String name)
Deprecated.
|
void |
setDataSource(XADataSource dataSource)
Deprecated.
Set the
XADataSource directly, instead of calling
ResourceBean.setClassName(String) . |
addConnectionCustomizer, close, endRecovery, findXAResourceHolder, getConnection, getConnection, getCursorHoldability, getInPoolSize, getIsolationLevel, getLocalAutoCommit, getLoginTimeout, getLogWriter, getPreparedStatementCacheSize, getReference, getTestQuery, getTotalPoolSize, isEnableJdbc4ConnectionTest, isFailed, isWrapperFor, removeConnectionCustomizer, reset, setCursorHoldability, setEnableJdbc4ConnectionTest, setFailed, setIsolationLevel, setLocalAutoCommit, setLoginTimeout, setLogWriter, setPreparedStatementCacheSize, setTestQuery, startRecovery, toString, unwrap
getAcquireIncrement, getAcquisitionInterval, getAcquisitionTimeout, getAllowLocalTransactions, getApplyTransactionTimeout, getAutomaticEnlistingEnabled, getClassName, getDeferConnectionRelease, getDriverProperties, getIgnoreRecoveryFailures, getMaxIdleTime, getMaxPoolSize, getMinPoolSize, getShareTransactionConnections, getTwoPcOrderingPosition, getUniqueName, getUseTmJoin, incCreatedResourcesCounter, isDisabled, setAcquireIncrement, setAcquisitionInterval, setAcquisitionTimeout, setAllowLocalTransactions, setApplyTransactionTimeout, setAutomaticEnlistingEnabled, setClassName, setDeferConnectionRelease, setDisabled, setDriverProperties, setIgnoreRecoveryFailures, setMaxIdleTime, setMaxPoolSize, setMinPoolSize, setShareTransactionConnections, setTwoPcOrderingPosition, setUniqueName, setUseTmJoin
public void init()
init
in interface bitronix.tm.resource.common.XAResourceProducer
init
in class bitronix.tm.resource.jdbc.PoolingDataSource
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void setDataSource(XADataSource dataSource)
XADataSource
directly, instead of calling
ResourceBean.setClassName(String)
.dataSource
- the data source to useprotected final XADataSource getDataSource()
public bitronix.tm.resource.common.XAStatefulHolder createPooledConnection(Object xaFactory, bitronix.tm.resource.common.ResourceBean bean) throws Exception
createPooledConnection
in interface bitronix.tm.resource.common.XAResourceProducer
createPooledConnection
in class bitronix.tm.resource.jdbc.PoolingDataSource
Exception
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException