org.omg.CosTransactions
Class ResourcePOA

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosTransactions.ResourcePOA
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, ResourceOperations
Direct Known Subclasses:
ResourcePOATie, XACoordinator, XACoordinator

public abstract class ResourcePOA
extends org.omg.PortableServer.Servant
implements ResourceOperations, org.omg.CORBA.portable.InvokeHandler

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
ResourcePOA()
           
 
Method Summary
 java.lang.String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId)
           
 org.omg.CORBA.portable.OutputStream _invoke(java.lang.String opName, org.omg.CORBA.portable.InputStream _is, org.omg.CORBA.portable.ResponseHandler handler)
           
 Resource _this()
           
 Resource _this(org.omg.CORBA.ORB orb)
           
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _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
 
Methods inherited from interface org.omg.CosTransactions.ResourceOperations
commit_one_phase, commit, forget, prepare, rollback
 

Constructor Detail

ResourcePOA

public ResourcePOA()
Method Detail

_this

public Resource _this()

_this

public Resource _this(org.omg.CORBA.ORB orb)

_all_interfaces

public java.lang.String[] _all_interfaces(org.omg.PortableServer.POA poa,
                                          byte[] objectId)
Specified by:
_all_interfaces in class org.omg.PortableServer.Servant

_invoke

public final org.omg.CORBA.portable.OutputStream _invoke(java.lang.String opName,
                                                         org.omg.CORBA.portable.InputStream _is,
                                                         org.omg.CORBA.portable.ResponseHandler handler)
Specified by:
_invoke in interface org.omg.CORBA.portable.InvokeHandler