@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
|
Constructor and Description |
---|
PoolingDataSourceBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
bitronix.tm.resource.common.XAStatefulHolder |
createPooledConnection(Object xaFactory,
bitronix.tm.resource.common.ResourceBean bean) |
protected XADataSource |
getDataSource() |
Logger |
getParentLogger() |
void |
init() |
void |
setBeanName(String name) |
void |
setDataSource(XADataSource dataSource)
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 org.springframework.beans.factory.BeanNameAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.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
@UsesJava7 public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.