Class WorkSynchronization

java.lang.Object
com.arjuna.ats.internal.jta.transaction.jts.jca.WorkSynchronization
All Implemented Interfaces:
jakarta.transaction.Synchronization

public class WorkSynchronization extends Object implements jakarta.transaction.Synchronization
Register a single instance of this thing when the first JCA worker is imported. Not before. It needs to tidy-up any Worker-to-transaction associations and to tear down any other transaction-specific data that we may be holding (e.g., TxWorkers).
Author:
mcl
  • Constructor Details

    • WorkSynchronization

      public WorkSynchronization(jakarta.transaction.Transaction current)
  • Method Details

    • beforeCompletion

      public void beforeCompletion()
      If the current transaction still has work associated with it, then we need to throw an exception. This will cause the current transaction to rollback.
      Specified by:
      beforeCompletion in interface jakarta.transaction.Synchronization
    • afterCompletion

      public void afterCompletion(int status)
      A null-op.
      Specified by:
      afterCompletion in interface jakarta.transaction.Synchronization