org.openejb.corba.services.transaction
Class ThreadTxAssociation

java.lang.Object
  |
  +--org.openejb.corba.services.transaction.ThreadTxAssociation

public class ThreadTxAssociation
extends java.lang.Object

This class is used to keep an associtaion between a thread and a transaction. This is required when underlying communication use different threads for processing invocations.

Version:
$Revision: 1.2 $ $Date: 2002/04/04 00:44:20 $

Field Summary
static boolean useFlag
          Use flag.
 
Constructor Summary
ThreadTxAssociation()
           
 
Method Summary
static void freeAssociation()
          Free an association between a SlotId, and a transaction xid.
static void getAssociation()
          Get a Tx xid from a SlotId.
static int getSlotId()
           
static void setAssociation(javax.transaction.Transaction tx)
          Set an association between a SlotId, and a transaction xid.
static void setParams(org.omg.CORBA.ORB _orb, int _slotId)
          Set the parateters.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useFlag

public static boolean useFlag
Use flag. If set to false, then nothing is done. If set to true, an ORB is in use.
Constructor Detail

ThreadTxAssociation

public ThreadTxAssociation()
Method Detail

setParams

public static void setParams(org.omg.CORBA.ORB _orb,
                             int _slotId)
Set the parateters.

getSlotId

public static int getSlotId()

setAssociation

public static void setAssociation(javax.transaction.Transaction tx)
Set an association between a SlotId, and a transaction xid.

freeAssociation

public static void freeAssociation()
Free an association between a SlotId, and a transaction xid.

getAssociation

public static void getAssociation()
Get a Tx xid from a SlotId.
Returns:
null if the SlotId is not found.