@Deprecated @ConfigurationProperties(prefix="spring.jta.bitronix.datasource") public class PoolingDataSourceBean extends bitronix.tm.resource.jdbc.PoolingDataSource implements org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.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(java.lang.Object xaFactory,
bitronix.tm.resource.common.ResourceBean bean)
Deprecated.
|
protected javax.sql.XADataSource |
getDataSource()
Deprecated.
|
java.util.logging.Logger |
getParentLogger()
Deprecated.
|
void |
init()
Deprecated.
|
void |
setBeanName(java.lang.String name)
Deprecated.
|
void |
setDataSource(javax.sql.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(java.lang.String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setDataSource(javax.sql.XADataSource dataSource)
XADataSource
directly, instead of calling
ResourceBean.setClassName(String)
.dataSource
- the data source to useprotected final javax.sql.XADataSource getDataSource()
public bitronix.tm.resource.common.XAStatefulHolder createPooledConnection(java.lang.Object xaFactory, bitronix.tm.resource.common.ResourceBean bean) throws java.lang.Exception
createPooledConnection
in interface bitronix.tm.resource.common.XAResourceProducer
createPooledConnection
in class bitronix.tm.resource.jdbc.PoolingDataSource
java.lang.Exception
public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
getParentLogger
in interface javax.sql.CommonDataSource
java.sql.SQLFeatureNotSupportedException