Apache Camel Loop 不会因异常而停止 [英] Apache Camel Loop does not stop on exception

查看:48
本文介绍了Apache Camel Loop 不会因异常而停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 camelContext.xml 文件的主路由中配置了骆驼循环,它将调用请求处理路由 3 次.我还配置了 onException xml 处理程序(设置为 true).但是,当第一次迭代出现异常时,执行控制转到 onException 块,但循环不会停止处理,而是其他 2 次迭代(第 2 次和第 3 次)也会发生.

I have camel loop configured within the main route of camelContext.xml file that would invoke request processing route 3 times. I have also configured onException xml handler (set handled to true). However, when there is an exception on the first iteration the execution control goes to onException block but loop doesn't stop processing instead the other 2 iterations (2nd and 3rd) do happen too.

我希望在发生异常时立即停止循环.

I would like to have loop stopped as soon as exception occurs.

谁能帮忙

提前致谢拉梅什

推荐答案

啊,这是 Apache Camel 中的一个错误.我已经记录了一张票并对此进行了修复.

Ah its a bug in Apache Camel. I have logged a ticket and have a fix for this.

这篇关于Apache Camel Loop 不会因异常而停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆