站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档

XATerminator (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档


javax.resource.spi
Interface XATerminator


public interface XATerminator

Transaction completion and crash recovery


Method Summary
 void commit(Xid xid, boolean onePhase)
          Commit the transaction
 void forget(Xid xid)
          Forget the transaction
 int prepare(Xid xid)
          Prepare the transaction
 Xid[] recover(int flag)
          Retrieve xids that are recoverable
 void rollback(Xid xid)
          Rollback the transaction
 

Method Detail

commit

public void commit(Xid xid,
                   boolean onePhase)
            throws XAException
Commit the transaction

Parameters:
xid - the xid
onePhase - true for one phase commit, false for two phase
Throws:
XAException - for an error

forget

public void forget(Xid xid)
            throws XAException
Forget the transaction

Parameters:
xid - the xid
Throws:
XAException - for an error

prepare

public int prepare(Xid xid)
            throws XAException
Prepare the transaction

Parameters:
xid - the xid
Returns:
Either XA_RDONLY or XA_OK
Throws:
XAException - for an error

rollback

public void rollback(Xid xid)
              throws XAException
Rollback the transaction

Parameters:
xid - the xid
Throws:
XAException - for an error

recover

public Xid[] recover(int flag)
              throws XAException
Retrieve xids that are recoverable

Parameters:
flag - the recovery option
Throws:
XAException - for an error


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.