If this method throws an exception, then the transaction will be aborted, and the exception will be treated as if it were thrown by the main body of the transaction.
This method will not be called if the transaction is aborted before it reaches the preparation stage, including if an earlier call to this method on another listener throws an exception or aborts the transaction. @throws RuntimeException if the transaction should be aborted
This method will be invoked after beforeCommit
, even when beforeCommit
threw an exception. This callback allows for closing resources before transaction completion, for any outcome.
@throws RuntimeException in case of errors; will be logged but not propagated(note: do not throw TransactionException subclasses here!)
@see #beforeCommit
@see #afterCompletion
|
|
|
|
|
|