Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (29 sloc) 2.06 KB
A project that shows how to perform transactional work in a RESTful environment.
It is based on draft 4 of a specification available from
with some modifications listed in ./docs/REST-Atomic+v2+draft+4.txt
(changes are marked with lines that begin with the text =>)
The project contains two (maven) modules:
- tx contains the implementation (the JAX-RS resources that implement the coordinator)
- webservice (packages the tx module artifact into a web archive for deployment to a web container)
The unit tests use Jersey as the JAX-RS implementation.
The integration tests use Jersey for the particpant and Resteasy for the coordinator.
Jersey and Resteasy are JAX-RS (JSR311) implementations.
There is a utility class called to help clients and participants
conform to this specification. You may like to use it directly or else just read the code to get a feel
for how to conform using your own code (perhaps you are using a different language or want to use a faster
HTTP library instead of the default
To use the implementation you will need an initial URL for starting transactions. The default is
TxSupport.TXN_MGR_URL and uses localhost on port 8080. To change it (and still use the TxSupport utility)
call TxSupport.setTxnMgrUrl(...).
To build the coordinator jar and war
mvn clean install
Module tx contains unit tests that show how to implement the client and transactional participants.
The coordinator and participant both run in a single embedded container (
To run the integration tests you will need to have a running instance of the JBoss application server
( Start the with the default server and set the JBOSS_HOME environment variable
appropriately. I have tested against AS trunk ( and AS7.
The integration tests run the particpant in an embedded container and the coordinator in the JBoss AS:
mvn clean install -Premote
Something went wrong with that request. Please try again.