org.springframework.boot.jta.bitronix

Class PoolingDataSourceBean

  • java.lang.Object
    • bitronix.tm.resource.common.ResourceBean
      • bitronix.tm.resource.jdbc.PoolingDataSource
        • org.springframework.boot.jta.bitronix.PoolingDataSourceBean
  • All Implemented Interfaces:
    bitronix.tm.resource.common.XAResourceProducer, bitronix.tm.resource.jdbc.PoolingDataSourceMBean, java.io.Serializable, java.sql.Wrapper, javax.naming.Referenceable, javax.sql.CommonDataSource, javax.sql.DataSource, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    Deprecated. 
    since 2.3.0 for removal in 2.5.0 as the Bitronix project is no longer being maintained

    @Deprecated
     @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
    Spring friendly version of PoolingDataSource. Provides sensible defaults and also supports direct wrapping of a XADataSource 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. 
       
      protected javax.sql.XADataSource getDataSource()
      Deprecated. 
       
      java.util.logging.Logger getParentLogger()
      Deprecated. 
       
      void init()
      Deprecated. 
       
      void setBeanName(java.lang.String name)
      Deprecated. 
       
      void setDataSource(javax.sql.XADataSource dataSource)
      Deprecated. 
      Set the XADataSource directly, instead of calling ResourceBean.setClassName(String).
      • Methods inherited from class bitronix.tm.resource.jdbc.PoolingDataSource

        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
      • 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 bitronix.tm.resource.common.XAResourceProducer

        getUniqueName
      • Methods inherited from interface bitronix.tm.resource.jdbc.PoolingDataSourceMBean

        getMaxPoolSize, getMinPoolSize, isDisabled, setDisabled
    • Constructor Detail

      • PoolingDataSourceBean

        public PoolingDataSourceBean()
        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.jdbc.PoolingDataSource
      • 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
      • setDataSource

        public void setDataSource(javax.sql.XADataSource dataSource)
        Deprecated. 
        Set the XADataSource directly, instead of calling ResourceBean.setClassName(String).
        Parameters:
        dataSource - the data source to use
      • getDataSource

        protected final javax.sql.XADataSource getDataSource()
        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.jdbc.PoolingDataSource
        Throws:
        java.lang.Exception
      • getParentLogger

        public java.util.logging.Logger getParentLogger()
                                                 throws java.sql.SQLFeatureNotSupportedException
        Deprecated. 
        Specified by:
        getParentLogger in interface javax.sql.CommonDataSource
        Throws:
        java.sql.SQLFeatureNotSupportedException