Apache的骆驼2.13.0退出分路器 [英] Apache Camel 2.13.0 quit splitter

查看:190
本文介绍了Apache的骆驼2.13.0退出分路器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个分流器的路线。我需要在每次发生什么时间停止分裂作业。当然onCompletion可以帮我,但是:

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

关于帖子<一个href=\"http://stackoverflow.com/questions/31312281/apache-camel-loop-does-not-stop-on-exception\">Apache骆驼循环不会停止对异常,这是一个错误,如果我们用

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()

分离器不会停止分裂。
我必须使用2.13.0却没有任何选择。我怎样才能解决这个问题?

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

推荐答案

设置选项 stopOnException = TRUE 在这里记录的分路器:的 http://camel.apache.org/splitter

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

这篇关于Apache的骆驼2.13.0退出分路器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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