Java Transaction API Extensions sample

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.

Time required to set up and configure these samples

10 minutes

Prerequisites for use

  • WebSphere® Application Server V8.0
Important: These samples were tested with WebSphere Application Server Version 8.0.

Samples download

To use the samples, download JTA Extensions sample files from a product download site. Complete the following steps:

  1. Choose one of the following methods to download the JTAExtensionsSamples.zip file to a directory on your workstation: FTP or HTTP. You might create the /samples/JTAExtensionsSamples directory path on your workstation and download JTA Extensions sample files to that directory path.
  2. From the displayed dialog, specify the target directory to which to save the compressed file and click OK.
  3. The JTAExtensionsSamples.zip file contains sample files in the following directory structure:
    /installableApps
    /javadoc
    /scripts
    /src
    build.xml
    readme.html
    Attention: The readme.html file contains information for installing and running the sample.

Samples description

ExtendedJTATransaction

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.




Related tasks
WebSphere Application Server Version 8.0 samples
Concept topic Concept topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 20, 2011 1:12:33 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-nd-mp&topic=sample_jta
File name: sample_jta.html