-
1. Re: Rest-AtomicTransaction implementation
mmusgrov Feb 24, 2010 6:05 AM (in response to gllambi)The implementation is available via svn:
https://svn.jboss.org/repos/labs/labs/jbosstm/workspace/resttx
There is also a write up on the JBoss wiki: entitled Transactional support for JAX RS based applications.
We don't have an implementation of the simpler forward based compensation approach but there is a description of the protocol entitled Compensating RESTful Transactions
I would be keen to know your thoughts on our approach. Thanks.
-
2. Re: Rest-AtomicTransaction implementation
gllambi Feb 24, 2010 6:16 AM (in response to mmusgrov)Michel, thank you very much for the quick answer! We are interested in Rest and transactions so we are very keen on having a try and testing it. Is there an api we can download or just the source from the svn? are there any docs que can use? do I have to use it with JBoss or can use it in a stand alone mode?
mmmm... sorry for the hurricane of questions
Thanks again!
Guzman
-
3. Re: Rest-AtomicTransaction implementation
mmusgrov Feb 24, 2010 6:43 AM (in response to gllambi)1 of 1 people found this helpfulThe implementation only needs a transaction manager and a JAX-RS implementation which are both available standalone. The maven pom will download them when you run mvn install. There are some junit tests that use jetty to run the JAX-RS implementation.
There are some docs in the docs directory of the download.
There are two components to the API. One for resource providers and one for clients:
- the urls are described in the docs or in the JAX-RS annotations in the code
- the provider urls are documented in the @Path annotations of the example provider (org.jboss.jbossts.rts.example.Participant)
- the client urls are documented in the @Path annotations of the coordinator implementation (org.jboss.jbossts.rts.service.Coordinator)
There are a number of examples (in the tests and in the demo) written in Java and Perl
-
4. Re: Rest-AtomicTransaction implementation
gllambi Feb 24, 2010 6:46 AM (in response to mmusgrov)Michel, thank you very much for evertything! I give it a try and then if you want, send some comments about the tests
Regards
Guzman