@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, unwrapgetAcquireIncrement, 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, setUseTmJoinpublic void init()
init in interface bitronix.tm.resource.common.XAResourceProducerinit in class bitronix.tm.resource.jdbc.PoolingDataSourcepublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic 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.XAResourceProducercreatePooledConnection in class bitronix.tm.resource.jdbc.PoolingDataSourceException@UsesJava7 public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2016 Pivotal Software, Inc.. All rights reserved.