-
1. Re: REST-AT and Container-Managed Transactions
mmusgrov May 22, 2015 5:56 AM (in response to juan_a_velez)We don't currently support automatically starting REST-AT transactions. We decided against that because the service that creates coordinators (aka begin a transaction) could reside anywhere on the network.
I guess we could check to see if the current container has such a service deployed and if it did then start a "local" REST-AT transaction. But then we would need an api to expose the resulting urls to the service method.
Related is our support for an inbound bridge:- if a JAX-RS service method is annotated as transactional and the incoming http request has a link header containing a REST-AT transaction enlistment url then we will make sure that any JTA work performed by the service call becomes part of the REST-AT transaction.
-
2. Re: REST-AT and Container-Managed Transactions
mmusgrov May 22, 2015 8:10 AM (in response to juan_a_velez)John, is your requirement to simply have transactional JAX-RS services. If so then you just need to add JTA 1.2 transaction annotations to your JAX-RS service methods and you do not need to use REST-AT
-
3. Re: REST-AT and Container-Managed Transactions
juan_a_velez May 22, 2015 11:10 AM (in response to mmusgrov)Thanks for the explanation. Our use case would be that a Stateless Bean(in this case a REST one) would be called by a client and we did not want the client to be "burdened" by having to know that a REST-AT transaction needs to take place.
Regarding your last comment the idea of using REST-AT is because we want to manage transactions among different microservices which may reside in different app servers. In our monotithic, JBoss-based application, we use extensively CMT (using JTA annotations) in our stateless beans(REST and non-REST ones).
-
4. Re: REST-AT and Container-Managed Transactions
juan_a_velez May 22, 2015 11:12 AM (in response to mmusgrov)Michael, is there a link to learn about the inbound bridge you talk about?
Thanks,
Juan
-
5. Re: REST-AT and Container-Managed Transactions
mmusgrov May 22, 2015 12:03 PM (in response to juan_a_velez)Our on-line docs contain a small section on the bridge. The quickstart you referred to demonstrates how to enable and use it.
We also provide an integration API that abstracts the mechanics of participating in REST-AT transactions - there is a high level description of it on our team blog.
If you have any other suggestions or ideas about how we can improve the usablitly of REST-AT please let us know.