org.springframework.boot.jta.bitronix

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 of PoolingConnectionFactory. Provides sensible defaults and also supports direct wrapping of a XAConnectionFactory instance.
    Since:
    1.2.0
    Author:
    Phillip Webb, Josh Long, Andy Wilkinson
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and 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 the XAConnectionFactory directly, instead of calling ResourceBean.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 interface bitronix.tm.resource.common.XAResourceProducer

        getUniqueName
      • Methods inherited from interface bitronix.tm.resource.jms.PoolingConnectionFactoryMBean

        getMaxPoolSize, getMinPoolSize, isDisabled, setDisabled
    • Constructor Detail

      • PoolingConnectionFactoryBean

        public PoolingConnectionFactoryBean()
    • Method Detail

      • init

        public void init()
        Specified by:
        init in interface bitronix.tm.resource.common.XAResourceProducer
        Overrides:
        init in class bitronix.tm.resource.jms.PoolingConnectionFactory
      • setBeanName

        public void setBeanName(String name)
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • destroy

        public void destroy()
                     throws Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        Exception
      • setConnectionFactory

        public void setConnectionFactory(javax.jms.XAConnectionFactory connectionFactory)
        Set the XAConnectionFactory directly, instead of calling ResourceBean.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 interface bitronix.tm.resource.common.XAResourceProducer
        Overrides:
        createPooledConnection in class bitronix.tm.resource.jms.PoolingConnectionFactory
        Throws:
        Exception

Copyright © 2018 Pivotal Software, Inc.. All rights reserved.