EJBTransaction:
SetTransactionTimeout method
Description
Sets the timeout value for subsequent transactions. The transaction
is rolled back if it does not complete before the timeout expires.
Syntax
1 |
<span>ejbtrans</span>.SetTransactionTimeout (long <span>seconds</span><span> </span>) |
Argument |
Description |
---|---|
ejbtrans |
The name of an EJBTransaction object |
seconds |
A long that specifies |
Return Values
None
Examples
This example shows the use of SetTransactionTimeout to
set the timeout period to five minutes:
1 |
// Instance variables:<br>// EJBConnection conn<br>// EJBTransaction trans<br> <br>TRY<br>   trans.<span>SetTransactionTimeout</span>(300)<br>   trans.begin()<br>CATCH (exception e)<br>   MessageBox("Exception", e.getMessage())<br>END TRY |
Usage
The SetTransactionTimeout method 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 Begin. If seconds is
0, no timeout period is in effect.
See Also
-
GetEJBTransaction (EJBConnection class)
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments