org.objectweb.speedo.jca
Class XAContext

java.lang.Object
  extended byorg.objectweb.speedo.jca.XAContext

public class XAContext
extends java.lang.Object

It represents a XA context. An XAContext is linked to a XA transaction represented by a XID. In a transaction the same ProxyManager is used.

Author:
S.Chassande-Barrioz

Field Summary
static byte ENDED
          Is a possible status of the XAContext.
 ProxyManager pm
          Is the ProxyManager to use in the XAContext (~transaction)
static byte PREPARED
          Is a possible status of the XAContext.
static byte STARTED
          Is a possible status of the XAContext.
 byte status
          is the status of the XAContext.
 boolean synchroRegistred
          This boolean indicates if the used PM has been registered as a java.transaction.Synchronization on the transaction.
static byte UNKNOWN
          Is a possible status of the XAContext.
 javax.transaction.xa.Xid xid
          The XID of the transaction
 
Constructor Summary
XAContext(javax.transaction.xa.Xid xid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final byte UNKNOWN
Is a possible status of the XAContext. It represents the initial state when the XAContext is not yet linked to a transaction. Then the PM must not be used in this state.

See Also:
Constant Field Values

STARTED

public static final byte STARTED
Is a possible status of the XAContext. The start() method has been called in order to demarcate the begin of the PM use.

See Also:
Constant Field Values

ENDED

public static final byte ENDED
Is a possible status of the XAContext. The end() method has been called in order to demarcate the end of the PM use.

See Also:
Constant Field Values

PREPARED

public static final byte PREPARED
Is a possible status of the XAContext. The prepare() method has been called in order to launch the first step of the two phase commit. The PM must not be used in this state.

See Also:
Constant Field Values

xid

public javax.transaction.xa.Xid xid
The XID of the transaction


pm

public ProxyManager pm
Is the ProxyManager to use in the XAContext (~transaction)


status

public byte status
is the status of the XAContext. The possible values are UNKNOWN, STARTED, ENDED or PREPARED.


synchroRegistred

public boolean synchroRegistred
This boolean indicates if the used PM has been registered as a java.transaction.Synchronization on the transaction.

Constructor Detail

XAContext

public XAContext(javax.transaction.xa.Xid xid)