Terminator::rollback

Overview Demands that the transaction be rolled back.
Original interface CosTransactions::Terminator Interface


Intended Usage

When a transaction is rolled back, all changes to transactional objects made in the scope of this transaction (including changes made by descendant transactions) are rolled back. All resources locked by the transaction are made available to other transactions as appropriate to the degree of isolation enforced by the resources.

Note that the suspend operation of the CosTransactions::Current Interface must be used to suspend an active transaction before the rollback operation of the Terminator interface is used to rollback the transaction.

Syntax

  void rollback();

Input parameters

None.

Return values

None.

Examples

The following examples demonstrate the usage of CosTransactions::Terminator::rollback.

C++ Example

  {
     try
     {
       CosTransactions::Control_var control;
       CosTransactions::Terminator_var term;
 
       .....
 
       control = current->suspend();
       term = control->get_terminator();
       term->rollback();
     }
     catch ( .........
  }
 

Related reference
CosTransactions in the transaction service



Searchable topic ID:   rcor_ctste2
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_ctste2.html

Library | Support | Terms of Use | Feedback