Apache Camel 2.13.0 quit splitter

余生长醉 提交于 2019-12-12 04:08:31

问题


I have a route with splitter. I need to stop the splitting-job each time it occurs something. Naturally onCompletion can help me but:

Regarding post "Apache Camel Loop does not stop on exception", it is a bug that if we use

.onCompletion().onFailureOnly()
    .process(new MyStopRouteProcessor("routeName"))
.end()

the splitter does not stop splitting. I have to use 2.13.0 and have not any choice. How can I solve the problem?


回答1:


Set the option stopOnException=true on the splitter as documented here: http://camel.apache.org/splitter



来源:https://stackoverflow.com/questions/36156667/apache-camel-2-13-0-quit-splitter

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