GetTransactionName PowerScript function
Description
Returns a string describing the EAServer transaction
associated with the calling thread.
Controls
CORBACurrent objects
Syntax
|
1 |
<span>CORBACurrent</span>.<span>GetTransactionName</span> ( <span> </span>) |
|
Argument |
Description |
|---|---|
|
CORBACurrent |
Reference to the CORBACurrent service |
Return Values
String. Returns a printable string describing
the transaction if a transaction exists and an empty string otherwise.
Usage
The GetTransactionName function returns
a string identifying the transaction associated with the calling
thread. This string is typically used for debugging.
GetTransactionName 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 the use of GetTransactionName to
return information about a transaction to a client:
|
1 |
// Instance variables:<br>// CORBACurrent corbcurr<br>string ls_transacname<br> <br>// Get an instance of the CORBACurrent object<br>// and initialize it   <br>...<br>ls_transacname = corbcurr.<span>GetTransactionName</span>()<br>   MessageBox("Transaction Name", ls_transacname) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest