javax.slee.transaction
Interface CommitListener


public interface CommitListener

The CommitListener interface defines the callback operations that enable a Resource Adaptor to be notified of the outcome of an asynchronous commit operation. An asynchronous commit operation is performed by invoking either SleeTransaction.asyncCommit(javax.slee.transaction.CommitListener) or SleeTransactionManager.asyncCommit(javax.slee.transaction.CommitListener).


Method Summary
 void committed()
          This method is invoked by the SLEE to indicate the transaction commit was successful.
 void heuristicMixed(javax.transaction.HeuristicMixedException hme)
          This method is invoked by the SLEE to report that a heuristic decision was made and that some relevant updates have been committed while others have been rolled back.
 void heuristicRollback(javax.transaction.HeuristicRollbackException hrbe)
          This method is invoked by the SLEE to indicate that a heuristic decision was made and that all relevant updates have been rolled back.
 void rolledBack(javax.transaction.RollbackException rbe)
          This method is invoked by the SLEE to indicate the transaction rolled back instead of committing.
 void systemException(javax.transaction.SystemException se)
          This method is invoked by the SLEE to indicate that the transaction manager encountered an unexpected error while attempting to commit the transaction.
 

Method Detail

committed

void committed()
This method is invoked by the SLEE to indicate the transaction commit was successful.


rolledBack

void rolledBack(javax.transaction.RollbackException rbe)
This method is invoked by the SLEE to indicate the transaction rolled back instead of committing.

Parameters:
rbe - the RollbackException which may provide information about why the transaction rolled back.

heuristicMixed

void heuristicMixed(javax.transaction.HeuristicMixedException hme)
This method is invoked by the SLEE to report that a heuristic decision was made and that some relevant updates have been committed while others have been rolled back.

Parameters:
hme - the HeuristicMixedException which may provide information about the heuristic decision.

heuristicRollback

void heuristicRollback(javax.transaction.HeuristicRollbackException hrbe)
This method is invoked by the SLEE to indicate that a heuristic decision was made and that all relevant updates have been rolled back.

Parameters:
hrbe - the HeuristicRollbackException which may provide information about the heuristic decision.

systemException

void systemException(javax.transaction.SystemException se)
This method is invoked by the SLEE to indicate that the transaction manager encountered an unexpected error while attempting to commit the transaction.

Parameters:
se - the SystemException which may provide information about the unexpected error.


Copyright © 2008. All Rights Reserved.