Question

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)

Was it helpful?

Solution

No. ReST (HTTP) is not transactional.

The best you can do is issue a compensating request to undo the update.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top