问题
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