Interface XATerminatorExtensions

All Known Implementing Classes:
XATerminator, XATerminator, XATerminatorImple, XATerminatorImple

public interface XATerminatorExtensions
Extensions to the basic XATerminator spi interface. It is important that these extensions aren't relied on to drive the normal JCA protocol in case we're ever embedded in a foreign implementation. It would be nice to have these non-XA specific extensions managed by a different class than the one that deals with the standard XATerminator interface methods, c.f. JTS/OTS for 2PC and Synchronizations. However, it's a lot easier to just bundle these together in the same implementation because of the way JCA works. Of course that can be changed later if necessary and the user(s) won't notice anyway.
Author:
marklittle
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Call beforeCompletion on the registered instance.
  • Method Details

    • beforeCompletion

      boolean beforeCompletion(Xid xid) throws jakarta.transaction.SystemException
      Call beforeCompletion on the registered instance. Exceptions will cause the transaction to be set rollback only. Note: this will run beforeCompletion even on setRollbackOnly transactions. Users may wish to avoid calling this method in such cases, or prior to calling rollback.
      Parameters:
      xid - the transaction instance.
      Returns:
      success (or not).
      Throws:
      jakarta.transaction.SystemException