Class WorkSynchronization
java.lang.Object
com.arjuna.ats.internal.jta.transaction.jts.jca.WorkSynchronization
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCompletion
(int status) A null-op.void
If the current transaction still has work associated with it, then we need to throw an exception.
-
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 interfacejakarta.transaction.Synchronization
-
afterCompletion
public void afterCompletion(int status) A null-op.- Specified by:
afterCompletion
in interfacejakarta.transaction.Synchronization
-