org.objectweb.jonas_tm
Class TransactionContextCORBA

java.lang.Object
  |
  +--org.objectweb.jonas_tm.TransactionContextCORBA
All Implemented Interfaces:
java.io.Serializable, TransactionContext

public class TransactionContextCORBA
extends java.lang.Object
implements TransactionContext

The propagation context is the transactional context that should be propagated between programs. The structure is defined in OTS specs. In case of DAVID we rely on the std class org.omg.CosTransaction.PropagationContext This class encapsulates a CORBA PropagationContext in a jonas object that implements the TransactionContext interface.

Author:
Philippe Durieux
See Also:
Serialized Form

Constructor Summary
TransactionContextCORBA(int timeout, Coordinator coord, javax.transaction.xa.Xid xid)
          Build a new TransactionContext when a new transaction is started.
TransactionContextCORBA(org.omg.CosTransactions.PropagationContext pctx)
          Build a TransactionContext from a CORBA PropagationContext propagated in an incoming request in RMI-IIOP.
 
Method Summary
 Control getControl()
          Get the control associated with the transaction
 Coordinator getCoordinator()
          Get the coordinator associated with the transaction
 Terminator getTerminator()
          Get the Terminator associated with the transaction
 int getTimeout()
          Get the timeout associated with the transaction
 javax.transaction.xa.Xid getXid()
          Get the Xid associated with the transaction
 void setCoordinator(Coordinator coord)
          Set the coordinator associated with the transaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionContextCORBA

public TransactionContextCORBA(int timeout,
                               Coordinator coord,
                               javax.transaction.xa.Xid xid)
Build a new TransactionContext when a new transaction is started.

TransactionContextCORBA

public TransactionContextCORBA(org.omg.CosTransactions.PropagationContext pctx)
Build a TransactionContext from a CORBA PropagationContext propagated in an incoming request in RMI-IIOP.
Method Detail

getTimeout

public int getTimeout()
Get the timeout associated with the transaction
Specified by:
getTimeout in interface TransactionContext

getCoordinator

public Coordinator getCoordinator()
Get the coordinator associated with the transaction
Specified by:
getCoordinator in interface TransactionContext

setCoordinator

public void setCoordinator(Coordinator coord)
Set the coordinator associated with the transaction
Specified by:
setCoordinator in interface TransactionContext

getTerminator

public Terminator getTerminator()
Get the Terminator associated with the transaction
Specified by:
getTerminator in interface TransactionContext

getControl

public Control getControl()
Get the control associated with the transaction
Specified by:
getControl in interface TransactionContext

getXid

public javax.transaction.xa.Xid getXid()
Get the Xid associated with the transaction
Specified by:
getXid in interface TransactionContext