org.omg.CosTransactions
Class ResourcePOATie

java.lang.Object
  extended byorg.omg.PortableServer.Servant
      extended byorg.omg.CosTransactions.ResourcePOA
          extended byorg.omg.CosTransactions.ResourcePOATie
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, ResourceOperations

public class ResourcePOATie
extends ResourcePOA

The Transaction Service uses a two-phase commitment protocol to complete a top-level transaction with each registered resource. The Resource interface defines the operations invoked by the transaction service on each resource. Each object supporting the Resource interface is implicitly associated with a single top-level transaction. Note that in the case of failure, the completion sequence will continue after the failure is repaired. A resource should be prepared to receive duplicate requests for the commit or rollback operation and to respond consistently.


Constructor Summary
ResourcePOATie(ResourceOperations tieObject)
          Constructor
ResourcePOATie(ResourceOperations tieObject, org.omg.PortableServer.POA poa)
          Constructor
 
Method Summary
 org.omg.PortableServer.POA _default_POA()
          _default_POA method
 ResourceOperations _delegate()
          Get the delegate
 void _delegate(ResourceOperations delegate_)
          Set the delegate
 void commit_one_phase()
          Operation commit_one_phase
 void commit()
          Operation commit
 void forget()
          Operation forget
 Vote prepare()
          Operation prepare
 void rollback()
          Operation rollback
 
Methods inherited from class org.omg.CosTransactions.ResourcePOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcePOATie

public ResourcePOATie(ResourceOperations tieObject)
Constructor


ResourcePOATie

public ResourcePOATie(ResourceOperations tieObject,
                      org.omg.PortableServer.POA poa)
Constructor

Method Detail

_delegate

public ResourceOperations _delegate()
Get the delegate


_delegate

public void _delegate(ResourceOperations delegate_)
Set the delegate


_default_POA

public org.omg.PortableServer.POA _default_POA()
_default_POA method


prepare

public Vote prepare()
             throws HeuristicMixed,
                    HeuristicHazard
Operation prepare

Throws:
HeuristicMixed
HeuristicHazard

rollback

public void rollback()
              throws HeuristicCommit,
                     HeuristicMixed,
                     HeuristicHazard
Operation rollback

Throws:
HeuristicCommit
HeuristicMixed
HeuristicHazard

commit

public void commit()
            throws NotPrepared,
                   HeuristicRollback,
                   HeuristicMixed,
                   HeuristicHazard
Operation commit

Throws:
NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard

commit_one_phase

public void commit_one_phase()
                      throws HeuristicHazard
Operation commit_one_phase

Throws:
HeuristicHazard

forget

public void forget()
Operation forget