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, java.io.Serializable, javax.jms.ConnectionFactory, javax.naming.Referenceable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    Deprecated. 
    since 2.3.0 as the Bitronix project is no longer being maintained

    @Deprecated
     @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
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      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. 
       
      void destroy()
      Deprecated. 
       
      protected javax.jms.XAConnectionFactory getConnectionFactory()
      Deprecated. 
       
      void init()
      Deprecated. 
       
      void setBeanName(java.lang.String name)
      Deprecated. 
       
      void setConnectionFactory(javax.jms.XAConnectionFactory connectionFactory)
      Deprecated. 
      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 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
      • 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()
        Deprecated. 
    • Method Detail

      • init

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

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

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

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

        public void setConnectionFactory(javax.jms.XAConnectionFactory connectionFactory)
        Deprecated. 
        Set the XAConnectionFactory directly, instead of calling ResourceBean.setClassName(String).
        Parameters:
        connectionFactory - the connection factory to use
      • getConnectionFactory

        protected final javax.jms.XAConnectionFactory getConnectionFactory()
        Deprecated. 
      • createPooledConnection

        public bitronix.tm.resource.common.XAStatefulHolder createPooledConnection(java.lang.Object xaFactory,
                                                                                   bitronix.tm.resource.common.ResourceBean bean)
                                                                            throws java.lang.Exception
        Deprecated. 
        Specified by:
        createPooledConnection in interface bitronix.tm.resource.common.XAResourceProducer
        Overrides:
        createPooledConnection in class bitronix.tm.resource.jms.PoolingConnectionFactory
        Throws:
        java.lang.Exception