Callers can register {@code TransactionListener}s to learn about the completion of a transaction without joining the transaction as a {@link TransactionParticipant}. Because {@link Service}s may depend on operations performed by the {@link #beforeCompletion TransactionListener.beforeCompletion} methods of listeners that theyregister, {@code beforeCompletion} methods should not make calls to otherservices, even though the transaction is still considered active when {@code beforeCompletion} is called. The results of such calls are unspecified. @see Transaction#registerListener Transaction.registerListener
TransactionListener
provides callbacks when a transaction is committed.
|
|