Skip to content
/ wstx Public

Web Service Transaction standard(WS-C/WS-Tx) Implementation

Notifications You must be signed in to change notification settings

fangzhen/wstx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wstx--Web Service Transaction Implementation

The project is intend to give a simple implementation of Web Service Transaction Standards (WS-Coordination, WS-AtomicTransaction, WS-BusinessActivity).

Build

mvn install

The tests use jetty as servlet container which need port 8080 on localhost, so make sure the port is not occupied.

Architecture

Basically, A transaction (or activity) involves coordinators and participants. The coordinator coordinates the transaction by interactive with participant under certain protocols. These protocols are typically defined by WS-AtomicTransaction and WS-BusinessActivity. All protocol operations are provided by web services.

Therefore, architecture of coordinators and participants are described blow respectively.

Coordinator Side

CoordinatorManager is the Coordinator that manages all transaction related with the site it resides at. As a result, it is singleton. It holds references of all transactions indexed by id.

For transaction instances, ActivityCoordinatorContext and its subclasses are in charge. They are responsible for activation and registration of different coordination types and protocols.

Participant Side

Initiator of WSAT

Similar with CoordinatorManager, WsatTxManager manages all transactions involved in the site it resides at. WsatTransaction is for transaction instances.

About

Web Service Transaction standard(WS-C/WS-Tx) Implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages