FileDocCategorySizeDatePackage
XAResourceWrapper.javaAPI DocGlassfish v2 API4610Fri May 04 22:35:58 BST 2007com.sun.enterprise.transaction

XAResourceWrapper

public abstract class XAResourceWrapper extends Object implements XAResource
Wrappers over XAResources extend from this class. This class simply implements the the standard XAResource interface. In addition it holds the XAConnection which is set by XARecoveryManager and is used by deriving classes to implement workarounds. An example of class extending from this is OracleXARescource.
author
Bala Dutt
version
1.0

Fields Summary
private static com.sun.enterprise.util.i18n.StringManager
sm
protected javax.resource.spi.ManagedConnection
m_xacon
protected Subject
subject
Constructors Summary
Methods Summary
public abstract voidcommit(javax.transaction.xa.Xid xid, boolean flag)

public voidend(javax.transaction.xa.Xid xid, int i)

        throw new XAException(sm.getString("transaction.for_recovery_only"));
    
public voidforget(javax.transaction.xa.Xid xid)

        throw new XAException(sm.getString("transaction.for_recovery_only"));
    
public intgetTransactionTimeout()

        throw new XAException(sm.getString("transaction.for_recovery_only"));
    
public voidinit(javax.resource.spi.ManagedConnection xacon, javax.security.auth.Subject subject)

        
        m_xacon=xacon;
        this.subject = subject;
    
public booleanisSameRM(javax.transaction.xa.XAResource xaresource)

        throw new XAException(sm.getString("transaction.for_recovery_only"));
    
public intprepare(javax.transaction.xa.Xid xid)

        throw new XAException(sm.getString("transaction.for_recovery_only"));
    
public abstract javax.transaction.xa.Xid[]recover(int flag)

public abstract voidrollback(javax.transaction.xa.Xid xid)

public booleansetTransactionTimeout(int i)

        throw new XAException(sm.getString("transaction.for_recovery_only"));
    
public voidstart(javax.transaction.xa.Xid xid, int i)

        throw new XAException(sm.getString("transaction.for_recovery_only"));