Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.6 KB

File metadata and controls

52 lines (39 loc) · 1.6 KB
title recover Method (SQLServerXAResource) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerXAResource.recover
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 840ecfcf-0dd3-4b7b-976f-dc9a96cd1464
author David-Engel
ms.author v-daenge

recover Method (SQLServerXAResource)

[!INCLUDEDriver_JDBC_Download]

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