Coordinator::is_top_level_transaction

Overview Determines whether the transaction associated with the target object is a top-level transaction.
Original interface CosTransactions::Coordinator Interface


Intended Usage

Determines whether the transaction associated with the target object is a top-level transaction. A transaction is a top-level transaction if it has no parent.

Syntax

  boolean is_top_level_transaction();

Input parameters

tc
A pointer to a Coordinator interface transaction.

Return values

TRUE
The transaction associated with the target object is a top-level transaction.
FALSE
The transaction associated with the target object is not a top-level transaction.

Examples

The following example demonstrates the usage of CosTransactions::Coordinator::is_top_level_transaction.

C++ Example

  CosTransactions::Coordinator *coord;
  if( coord->is_top_level_transaction() )
  {
      cout << "Coordinator represents a top-level transaction" << endl;
  }
  else
  {
      cout << "Coordinator represents a subtransaction" << endl;
  }

Related reference
CosTransactions in the transaction service



Searchable topic ID:   rcor_ctsc11
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_ctsc11.html

Library | Support | Terms of Use | Feedback