Current::get_status

Overview Determines the status of the current transaction.
Original interface CosTransactions::Current Interface


Intended Usage

If there is no transaction associated with the current thread, the StatusNoTransaction value is returned.

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

Syntax

  Status get_status();

Input parameters

None.

Return values

Status
The status of the current transaction.

Examples

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

C++ Example

#include <CosTransactions.hh>
{
   CosTransactions::Current_ptr my_current;
   CosTransactions::Status_ptr status;
   ...
   // Access the CosTransactions::Current object.
   CORBA::Object_ptr orbCurrentPtr = 
     CBSeriesGlobal::orb()->resolve_initial_references("TransactionCurrent");
   my_current = CosTransactions::Current::_narrow(orbCurrentPtr);
   status = my_current->get_status();
   ...
}

Related reference
CosTransactions in the transaction service



Searchable topic ID:   rcor_ctscu4
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_ctscu4.html

Library | Support | Terms of Use | Feedback