Class PoolingConnectionFactoryBean
- java.lang.Object
- bitronix.tm.resource.common.ResourceBean
- bitronix.tm.resource.jms.PoolingConnectionFactory
- org.springframework.boot.jta.bitronix.PoolingConnectionFactoryBean
- All Implemented Interfaces:
bitronix.tm.resource.common.XAResourceProducer
,bitronix.tm.resource.jms.PoolingConnectionFactoryMBean
,Serializable
,javax.jms.ConnectionFactory
,Referenceable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
@ConfigurationProperties(prefix="spring.jta.bitronix.connectionfactory") public class PoolingConnectionFactoryBean extends bitronix.tm.resource.jms.PoolingConnectionFactory implements org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Spring friendly version ofPoolingConnectionFactory
. Provides sensible defaults and also supports direct wrapping of aXAConnectionFactory
instance.- Since:
- 1.2.0
- See Also:
- Serialized Form
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PoolingConnectionFactoryBean.DirectXAConnectionFactory
Constructor Summary
Constructors Constructor Description PoolingConnectionFactoryBean()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
bitronix.tm.resource.common.XAStatefulHolder
createPooledConnection(Object xaFactory, bitronix.tm.resource.common.ResourceBean bean)
void
destroy()
protected javax.jms.XAConnectionFactory
getConnectionFactory()
void
init()
void
setBeanName(String name)
void
setConnectionFactory(javax.jms.XAConnectionFactory connectionFactory)
Set theXAConnectionFactory
directly, instead of callingResourceBean.setClassName(String)
.Methods inherited from class bitronix.tm.resource.jms.PoolingConnectionFactory
close, createConnection, createConnection, endRecovery, findXAResourceHolder, getCacheProducersConsumers, getInPoolSize, getPassword, getReference, getTestConnections, getTotalPoolSize, getUser, isFailed, reset, setCacheProducersConsumers, setFailed, setPassword, setTestConnections, setUser, startRecovery, toString
Methods inherited from class bitronix.tm.resource.common.ResourceBean
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.jms.ConnectionFactory
createContext, createContext, createContext, createContext
Constructor Detail
PoolingConnectionFactoryBean
public PoolingConnectionFactoryBean()
Method Detail
init
public void init()
- Specified by:
init
in interfacebitronix.tm.resource.common.XAResourceProducer
- Overrides:
init
in classbitronix.tm.resource.jms.PoolingConnectionFactory
setBeanName
public void setBeanName(String name)
- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
Exception
setConnectionFactory
public void setConnectionFactory(javax.jms.XAConnectionFactory connectionFactory)
Set theXAConnectionFactory
directly, instead of callingResourceBean.setClassName(String)
.- Parameters:
connectionFactory
- the connection factory to use
getConnectionFactory
protected final javax.jms.XAConnectionFactory getConnectionFactory()
createPooledConnection
public bitronix.tm.resource.common.XAStatefulHolder createPooledConnection(Object xaFactory, bitronix.tm.resource.common.ResourceBean bean) throws Exception
- Specified by:
createPooledConnection
in interfacebitronix.tm.resource.common.XAResourceProducer
- Overrides:
createPooledConnection
in classbitronix.tm.resource.jms.PoolingConnectionFactory
- Throws:
Exception