Current::get_transaction_name

Overview Supports debugging by returning a string describing the transaction.
Original interface CosTransactions::Current Interface


Intended Usage

If there is no transaction associated with the current thread, an empty string is returned.

The effect of this request is equivalent to performing the get_transaction_name Operation in the corresponding Coordinator Interface.

Syntax

  string get_transaction_name();

Input parameters

None.

Return values

string
A printable string describing the transaction.

Examples

The following examples demonstrate the usage of CosTransactions::Current::get_transaction_name.

C++ Example

#include <CosTransactions.hh>
{
   CosTransactions::Current_ptr my_current;
   string name;
   ...
   // Access the CosTransactions::Current object.
   CORBA::Object_ptr orbCurrentPtr = 
     CBSeriesGlobal::orb()->resolve_initial_references("TransactionCurrent");
   my_current = CosTransactions::Current::_narrow(orbCurrentPtr);
   name = my_current->get_transaction_name();
   cout << "Current transaction name is " << name << endl;
   ...
}

Related reference
CosTransactions in the transaction service



Searchable topic ID:   rcor_ctscu5
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_ctscu5.html

Library | Support | Terms of Use | Feedback