[英]How to implement web service transactions?
Is there a Java tool for choreographing web services that makes it easy to deal with transactions? 是否有用于编排Web服务的Java工具,可以轻松处理事务?
In my use case I want to chain 2 SOAP web services: the first will perform a debit into a client's bank account and the second will recharge his cell phone for the corresponding amount. 在我的用例中,我想链接2个SOAP Web服务:第一个将借记卡进入客户的银行账户,第二个将为他的手机充值相应的金额。 How can I implement this sequence of web services calls transactionally?
如何以事务方式实现此Web服务调用序列?
I briefly looked at Apache Camel but it doesn't seem to be the most adequate tool. 我简要地看了一下Apache Camel,但它似乎不是最合适的工具。
Thanks. 谢谢。
If your web-services are implemented using SOAP, you can implement 2-phase commit with WS-AtomicTransaction extension. 如果您的Web服务是使用SOAP实现的,则可以使用WS-AtomicTransaction扩展实现两阶段提交。 These articles go into details how it can be implemented:
这些文章详细介绍了如何实现它:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.