The Java Transaction API (JTA) extensions notify an application of the completion of every transaction that runs on a server. Applications receive notification of each transaction beforeCompletion and afterCompletion events, by registering an implementation of the SynchronizationCallback interface. This sample comprises a servlet that registers for synchronization callbacks when it is initialized. The servlet displays a table detailing every completed transaction on the server since registration. For user convenience, an option is provided to run a new transaction that can either be committed or rolled back.
10 minutes
To use the samples, download JTA Extensions sample files from a product download site. Complete the following steps:
This interface provides a WebSphere programming model extension to the Java 2 Platform, Enterprise Edition (J2EE) JTA support. An object implementing this interface is bound by WebSphere J2EE containers that support this interface, at java:comp/websphere/ExtendedJTATransaction.