recover Method (SQLServerXAResource)

Download JDBC driver

Obtains a list of prepared transaction branches from a resource manager.

Syntax

  
public javax.transaction.xa.Xid[] recover(int flags)  

Parameters

flags

An int value that can take one of the following values: XAResource.TMSTARTRSCAN or XAResource.TMENDRSCAN or XAResource.TMNOFLAGS or XAResource.TMSTARTTRSCAN | XAResource.TMENDRSCAN.

Return Value

An Xid object.

Exceptions

javax.transaction.xa.XAException

Remarks

This recover method is specified by the recover method in the javax.transaction.xa.XAResource interface.

If the parameter flag is not XAResource.TMSTARTRSCAN or XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN, a recovery scan must be in progress.

See Also

SQLServerXAResource Methods
SQLServerXAResource Members
SQLServerXAResource Class