Reputation: 494
I am having a spring JMS listener , which is doing some message processing , calling rest web service and posting a message to other JMS queue. What I want is to happen it in a single transaction . For example , in case while posting a message to JMS queue , if something goes wrong how can we rollback rest service call ? (I am not sure how can we enlist web service calls in transaction)
Upvotes: 0
Views: 703
Reputation: 174759
No. ReST (HTTP) is not transactional.
The best you can do is issue a compensating request to undo the update.
Upvotes: 1