SetTimeout – PB Docs 126

SetTimeout PowerScript function

Description

Sets the timeout value for subsequent EAServer transactions. The transaction is
rolled back if it does not complete before the timeout expires.

Controls

CORBACurrent objects

Syntax

Argument

Description

CORBACurrent

Reference to the CORBACurrent service
instance

seconds

An unsignedlong that specifies the number
of seconds that elapse before a transaction is rolled back

Return Values

Boolean. Returns true if
it succeeds and false if an error occurs.

Usage

The SetTimeout function specifies the
number of seconds that can elapse before a transaction is rolled
back. The timeout period applies to transactions created by subsequent
invocations of BeginTransaction. If seconds is
0, no timeout period is in effect.

SetTimeout can be called by a client or
a component that is marked as OTS style. EAServer must
be using the two-phase commit transaction coordinator (OTS/XA).

Examples

This example shows how to set the timeout period
to five minutes:

See Also


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x