Current::rollback_only

Overview Modifies the transaction such that it cannot be committed, but can only be rolled back.
Original interface CosTransactions::Current Interface
Exceptions NoTransaction


Intended Usage

If there is no transaction associated with the current thread, the NoTransaction exception is raised.

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

Syntax

  void rollback_only() raises(NoTransaction);

Input parameters

None.

Return values

None.

Examples

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

C++ Example

  #include <CosTransactions.hh> // CosTransactions module
  ...
  //Access the CosTransactions::Current object.
  CORBA::Object_ptr orbCurrentPtr = 
     CBSeriesGlobal::orb()->resolve_initial_references("TransactionCurrent");
  CosTransactions::Current_ptr current = 
     CosTransactions::Current::_narrow(orbCurrentPtr);
  // Invoke the rollback_only operation on the CosTransactions::Current object.
  current->rollback_only();
  ...
 

Related reference
CosTransactions in the transaction service



Searchable topic ID:   rcor_ctscu8
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_ctscu8.html

Library | Support | Terms of Use | Feedback