Class LocalXAConnectionFactory

    • Constructor Detail

      • LocalXAConnectionFactory

        public LocalXAConnectionFactory​(TransactionManager transactionManager,
                                        ConnectionFactory connectionFactory)
        Creates an LocalXAConnectionFactory which uses the specified connection factory to create database connections. The connections are enlisted into transactions using the specified transaction manager.
        Parameters:
        transactionManager - the transaction manager in which connections will be enlisted
        connectionFactory - the connection factory from which connections will be retrieved
      • LocalXAConnectionFactory

        public LocalXAConnectionFactory​(TransactionManager transactionManager,
                                        TransactionSynchronizationRegistry transactionSynchronizationRegistry,
                                        ConnectionFactory connectionFactory)
        Creates an LocalXAConnectionFactory which uses the specified connection factory to create database connections. The connections are enlisted into transactions using the specified transaction manager.
        Parameters:
        transactionManager - the transaction manager in which connections will be enlisted
        transactionSynchronizationRegistry - the optional TSR to register synchronizations with
        connectionFactory - the connection factory from which connections will be retrieved
        Since:
        2.8.0