简体   繁体   English

Web服务:回滚已提交的事务

[英]Web Services: Rolling back a committed Transaction

Im new to webservices. 我是Web服务的新手。 Im sending a webservice request to cxf endpoint through a camel route marked "transacted" and the response is got. 我通过标记为“已处理”的骆驼路由向cxf端点发送了一个Web服务请求,并获得了响应。 In the same transaction route, next statement throws an exception so that my Exception handler rollsback the transaction. 在同一事务路由中,next语句引发异常,以便我的Exception处理程序回滚该事务。

I can find other things in my transaction rolledback, except my webservice request response since its already commited. 我可以在事务回滚中找到其他东西,除了我的Web服务请求响应已经提交以来。

Is there a way of rolling back commited webservice request? 是否有回滚提交的Web服务请求的方法? Or is there a way of sending a rollback last webservice request ?? 或者有没有一种方法可以发送回滚的最后一个Web服务请求?

Please help, Stuck for 3 days on same... 请帮助,卡在同一天3天...

只需制作另一个Web服务即可撤消第一个Web服务完成的所有操作,然后在.onException()例程中调用它

No there is no such thing as transactions for web services. 没有,没有Web服务交易之类的东西。 You can find information on wikipedia such as http://en.wikipedia.org/wiki/Compensating_transaction 您可以在Wikipedia上找到信息,例如http://en.wikipedia.org/wiki/Compensating_transaction

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM