19992009 Ericsson AB. All Rights Reserved. The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. CosTransactions_­SubtransactionAwareResource ..._SubtransactionAwareResource 1999-04-12 PA1
CosTransactions_SubtransactionAwareResource This module implements the OMG CosTransactions::SubtransactionAwareResource interface.

This interface inherits the CosTransactions::Resource interface. Hence, it must also support all operations defined in the Resource interface.

To get access to the record definitions for the structures use:

-include_lib("cosTransactions/include/CosTransactions.hrl").

commit_subtransaction(SubtransactionAwareResource, Coordinator) -> Return Notify the target object that the transaction has committed SubtransactionAwareResource = #objref Coordinator = #objref Return = ok

If the SubtransactionAwareResource have been registered with a subtransaction using the operation CosTransactions_Coordinator:register_subtran_aware/2, it will be notified when the transaction has committed.

The results of a committed subtransaction are relative to the completion of its ancestor transactions, that is, these results can be undone if any ancestor transaction is rolled back.

rollback_subtransaction(SubtransactionAwareResource) -> Return Notify the target object that the transaction has been rolled back SubtransactionAwareResource = #objref Return = ok

If the SubtransactionAwareResource have been registered with a transactions using the operation CosTransactions_Coordinator:register_subtran_aware/2 it will be notified when the transaction has rolled back.