spring-framework / org.springframework.transaction.jta / SpringJtaSynchronizationAdapter / afterCompletion

afterCompletion

open fun afterCompletion(status: Int): Unit

JTA afterCompletion callback: invoked after commit/rollback.

Needs to invoke the Spring synchronization's beforeCompletion at this late stage in case of a rollback, since there is no corresponding callback with JTA.

See Also
org.springframework.transaction.support.TransactionSynchronization#beforeCompletionorg.springframework.transaction.support.TransactionSynchronization#afterCompletion