EJBTransaction:
Begin method
Description
Creates a new transaction and associates it with the current
thread.
Syntax
1 |
<span>ejbtrans</span>.Begin ( <span> </span>) |
Argument |
Description |
---|---|
ejbtrans |
The name of an EJBTransaction object |
Return Values
None
Examples
The following example shows the use of begin to
create a transaction from a client:
1 |
EJBTransaction trans<br>EJBConnection conn<br>string properties[ ]<br> <br>// set properties<br>.....<br>conn = create ejbconnection<br>TRY<br>   conn.connectToServer(properties)<br>   trans = conn.GetEjbTransaction<br>   trans.<span>begin</span>()<br>CATCH (exception e)<br>   messagebox("exception", e.getmessage())<br>END TRY |
See Also
-
Commit, GetStatus, GetEJBTransaction (EJBConnection
class), Rollback, SetRollbackOnly, SetTransactionTimeout
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments