![]() |
Overview Supports debugging by returning a string describing the transaction associated with the target object. Original interface CosTransactions::Coordinator Interface
Intended Usage
Returns a printable string describing the transaction. If there is no transaction associated with the current thread, an empty string is returned.
IDL Syntax
string get_transaction_name();
Input parameters
None.
Return values
- string
- A string describing the transaction associated with the target object.
Examples
The following examples demonstrate the usage of CosTransactions::Coordinator::get_transaction_name.
C++ Example
CosTransactions::Coordinator *coord; string name; name = coord->get_transaction_name(); cout << "Transaction name is " << name << endl;
Java Example
org.omg.CosTransactions.Coordinator coord; string name; name = coord.get_transaction_name(); System.out.println ("Transaction name is " + name);