tppt.xopen
Interface XA

All Known Implementing Classes:
ResourceManager

public interface XA

XA is the name of the services shared by the TM and the RM. The XA services are provided by RMs and are called by TM. This interface is revised from the X/Open standard.

Version:
2.0
Author:
Jodie Wu

Method Summary
 boolean xa_close()
          Transaction Manager calls xa_close() to close the transaction for specific Resource Manager
 boolean xa_commit()
          Transaction Manager calls xa_commit() to commit the transaction for specific Resource Manager.
 int xa_prepare()
          Transaction Manager calls xa_prepare() to notify the Resource Manager to return their vote for this global transaction.
 boolean xa_rollback()
          Transaction Manager calls xa_rollback() to rollback the transaction for specific Resource Manager.
 

Method Detail

xa_close

public boolean xa_close()
Transaction Manager calls xa_close() to close the transaction for specific Resource Manager
Returns:
true if transaction close sucessfully;false otherwise.

xa_commit

public boolean xa_commit()
Transaction Manager calls xa_commit() to commit the transaction for specific Resource Manager.
Returns:
true if transaction close sucessfully;false otherwise.

xa_rollback

public boolean xa_rollback()
Transaction Manager calls xa_rollback() to rollback the transaction for specific Resource Manager.
Returns:
return true if rollback sucessfully, false otherwise.

xa_prepare

public int xa_prepare()
               throws PreparedTimeoutException
Transaction Manager calls xa_prepare() to notify the Resource Manager to return their vote for this global transaction.
Returns:
Message.TM_VOTE_READY if Resource Manager vote READY. Message.TM_VOTE_ABORT if Resource Manager vote ABORT.
Throws:
PreparedTimeoutException - this exception is thrown when there is no responce from Resource Manager.