How to receive transaction callbacks for EJB and CDI beans
The JTA API gives a chance to receive callbacks on the event of a finishing transaction. As per specification, the transaction manager announces the even of beforeCompletion and afterCompletion which are defined by the interface javax.transaction.Synchronization. More in detail: beforeCompletion callback is invoked at time the transaction manager starts to commit the global transaction. The … Read more