You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Zheng Feng <zf...@redhat.com> on 2019/04/24 07:57:14 UTC
CXF Web Service Transactions
Hi all,
I just create a demo [1] for web service transactions (JTA over WSAT) by
using the apache-cxf, narayana and spring-boot. It shows how to use the
JTA->WSAT->JTA bridge in the two different web services. It is driven by
the local JTA transaction, and propagate by the WSAT transaction [2]
between the service invoking. The pseudo codes look like the following
UserTransaction ut;
ut.begin();
firstWebServiceClient.invoke(); // invoke the remote web service
secondWebServiceClient.invoke();
ut.commit(); // or ut.rollback();
Welcome the feedback !
Regards,
Amos
[1] https://github.com/zhfeng/cxf-ws-transaction
[2] http://docs.oasis-open.org/ws-tx/wstx-wsat-1.2-spec.html