Apache Camel Loop does not stop on exception

我的未来我决定 提交于 2019-12-22 11:19:38

问题


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.

Can anyone please help

Thanks in advance Ramesh


回答1:


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

  • https://issues.apache.org/jira/browse/CAMEL-8945


来源:https://stackoverflow.com/questions/31312281/apache-camel-loop-does-not-stop-on-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!