public interface CompensatingTransactionOperationManager
A CompensatingTransactionOperationManager implementation records and performs
operations that are to be performed within a compensating transaction. It
keeps track of compensating actions necessary for rolling back each
Indicates that the supplied operation (method name) is to be performed.
This method is responsible for recording the current state (prior to the
operation), performing the operation, and storing the necessary
information to roll back or commit the performed operation.
resource - the target resource to perform the operation on.
operation - The method to be invoked.
args - Arguments supplied to the method.
Rollback all recorded operations by performing each of the recorded
Commit all recorded operations. In many cases this means doing nothing,
but in some cases some temporary data will need to be removed.