com.arjuna.ats.jta.recovery
Interface XAConnectionRecovery


Deprecated. As of ATS 3.3, replaced by @link XAResourceRecovery

public interface XAConnectionRecovery

To perform recovery on arbitrary connections we may need to recreate those connections. Users can provide implementations of this interface which we will use at recovery time to re-create db connections and from them perform recovery.

Since:
JTS 2.1.

Method Summary
 javax.sql.XAConnection getConnection()
          Deprecated. Get a connection to use for recovery purposes.
 boolean hasMoreConnections()
          Deprecated. Iterate through all of the connections this instance provides access to.
 boolean initialise(java.lang.String p)
          Deprecated. Initialise with all properties required to create a connection.
 

Method Detail

getConnection

public javax.sql.XAConnection getConnection()
                                     throws java.sql.SQLException
Deprecated. 
Get a connection to use for recovery purposes.

Returns:
a new XAConnection.
Throws:
java.sql.SQLException

initialise

public boolean initialise(java.lang.String p)
                   throws java.sql.SQLException
Deprecated. 
Initialise with all properties required to create a connection.

Returns:
true if initialization happened successfully, false otherwise.
Throws:
java.sql.SQLException

hasMoreConnections

public boolean hasMoreConnections()
Deprecated. 
Iterate through all of the connections this instance provides access to.

Returns:
true if this instance can provide more connections, false otherwise.