Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.36 KB

File metadata and controls

45 lines (33 loc) · 1.36 KB
title setTransactionTimeout Method (SQLServerXAResource)
description setTransactionTimeout Method (SQLServerXAResource)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerXAResource.setTransactionTimeout
apitype Assembly

setTransactionTimeout Method (SQLServerXAResource)

[!INCLUDEDriver_JDBC_Download]

Sets the current transaction time out value for this SQLServerXAResource object.

Syntax

  
public boolean setTransactionTimeout(int seconds)  

Parameters

seconds

An int value.

Return Value

true if the timeout was successfully set. Otherwise, false.

Exceptions

javax.transaction.xa.XAException

Remarks

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

See Also

SQLServerXAResource Methods
SQLServerXAResource Members
SQLServerXAResource Class