In Hibernate 5.0. the ability to intercept event "tx was committed successfully" is completely broken.
There is no 100% working workaround, see for details
Probably adding wasCommited() won't be enough – I don't for sure know whether or not the callback invocation model was broken/changed in 5.0 or not.
you can register a
should give you the opportunity to intercept if the transaction was committed successfully or not.