com.sun.enterprise.transaction.jts.recovery
Class SybaseXAResource

java.lang.Object
  extended by com.sun.enterprise.transaction.api.XAResourceWrapper
      extended by com.sun.enterprise.transaction.jts.recovery.SybaseXAResource
All Implemented Interfaces:
XAResource

public class SybaseXAResource
extends XAResourceWrapper

XA Resource wrapper class for sybase XA Resource with jConnect 5.2.

Version:
1.0
Author:
Bala Dutt

Field Summary
 
Fields inherited from class com.sun.enterprise.transaction.api.XAResourceWrapper
m_xacon, subject
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
SybaseXAResource()
           
 
Method Summary
 void commit(Xid xid, boolean flag)
           
 XAResourceWrapper getInstance()
           
 Xid[] recover(int flag)
          Returns xids list for recovery depending on flags.
 void rollback(Xid xid)
           
 
Methods inherited from class com.sun.enterprise.transaction.api.XAResourceWrapper
end, forget, getTransactionTimeout, init, isSameRM, prepare, setTransactionTimeout, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SybaseXAResource

public SybaseXAResource()
Method Detail

getInstance

public XAResourceWrapper getInstance()
Specified by:
getInstance in class XAResourceWrapper

recover

public Xid[] recover(int flag)
              throws XAException
Returns xids list for recovery depending on flags. Sybase XA Resource ignores the flags for XAResource recover call. This method takes care for the fault. Allows the recover call only for TMSTARTRSCAN, for other values of flags just returns null.

Specified by:
recover in interface XAResource
Specified by:
recover in class XAResourceWrapper
Parameters:
flag - an int value
Returns:
a Xid[] value
Throws:
XAException - if an error occurs

commit

public void commit(Xid xid,
                   boolean flag)
            throws XAException
Specified by:
commit in interface XAResource
Specified by:
commit in class XAResourceWrapper
Throws:
XAException

rollback

public void rollback(Xid xid)
              throws XAException
Specified by:
rollback in interface XAResource
Specified by:
rollback in class XAResourceWrapper
Throws:
XAException


Copyright © 2012 GlassFish Community. All Rights Reserved.