Class LocalXAConnectionFactory

  • All Implemented Interfaces:
    ConnectionFactory, XAConnectionFactory

    public class LocalXAConnectionFactory
    extends Object
    implements XAConnectionFactory
    An implementation of XAConnectionFactory which manages non-XA connections in XA transactions. A non-XA connection commits and rolls back as part of the XA transaction, but is not recoverable since the connection does not implement the 2-phase protocol.
    Version:
    $Revision$
    Author:
    Dain Sundstrom
    • 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