5

Is there a Java tool for choreographing web services that makes it easy to deal with transactions?

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. How can I implement this sequence of web services calls transactionally?

I briefly looked at Apache Camel but it doesn't seem to be the most adequate tool.

Thanks.

dmz73
  • 1,588
  • 4
  • 20
  • 32

1 Answers1

4

If your web-services are implemented using SOAP, you can implement 2-phase commit with WS-AtomicTransaction extension. These articles go into details how it can be implemented:

Vlad
  • 1,723
  • 12
  • 16
  • The first link seems to be weblogic-specific. In my case we will be using JBoss so I was wondering if this is the tool I should use http://narayana.jboss.org/. – dmz73 Sep 09 '14 at 17:26
  • @dmz73 I don't have experience with it, but after having a glance Narayana seems to be a natural choice for JBoss deployments. – Vlad Sep 10 '14 at 15:16
  • @dmz73, were you able to successfully implement the distributed transaction with WS-AT on JBoss (or any other platform)? We have JBoss EAP 6.3 and avoid distributed transactions, but here and there it's unavoidable. We've used EJBs in that case, but would like to know if it works with SOAP services. – Paulo Merson Nov 13 '15 at 20:09