Reputation: 75
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?
Upvotes: 0
Views: 457
Reputation: 55550
Set the option stopOnException=true
on the splitter as documented here: http://camel.apache.org/splitter
Upvotes: 3