KBR
KBR

Reputation: 494

Rest Service and JMS message in a single transaction

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

Answers (1)

Gary Russell
Gary Russell

Reputation: 174759

No. ReST (HTTP) is not transactional.

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

Upvotes: 1

Related Questions