Web Services Atomic Transaction (WS-AT) support in WebSphere Application Server (hereafter called Application Server) enabled web services applications to participate in transactions. With this support, business process applications running in WebSphere Process Server (hereafter called Process Server) can participate in distributed transactions.
To learn more about the web services transaction support, see the Information Center.
This tutorial provides an illustration of WS-AT based distributed transaction between a business process running on WebSphere Process Server and a Java™ API for XML web services (JAX-WS) based service, residing on an external WebSphere Application Server. The tutorial is follow-on to a previous article, Transactionally integrate Web services with BPEL processes in WebSphere Process Server. That article is intended for Version 6.0.2 of WebSphere Process Server. The focus of this article will be on WS-AT configuration in Version 7.0.
There are two applications developed in the tutorial, a business process application called “ABCBPEL”, which contains a business process and a web services import, and a web service application called “ABCService”, as shown in Figure 1. The business process component in ABCBPEL module invokes the web service in ABCService. ABCService receives a parameter from the business process and uses it as data to insert a row into the database. The business process also has a snippet component, which you can use to raise a fault and to demonstrate a global transaction rollback.
A sample Project Interchange file, WS-ATProjectInterchange.zip, is provided for you to download with this tutorial.
Figure 1. WS-AT context
The tutorial is divided into the following sections:
You will need:
- Previous development experience in WebSphere Integration Developer.
- Knowledge of basic administration of WebSphere Process Server and WebSphere Application Server.
- Microsoft® Windows® XP Professional Desktop with at least 2 GB of RAM
- IBM WebSphere Integration Developer V126.96.36.199 with WebSphere Process Server Test Environment V188.8.131.52, WebSphere Application Server V184.108.40.206
- Database server, such as IBM DB2® Express
Approximately 1 to 2 hours