Hello community, I am using camel 3.20.5 in XML DSL. I am trying to achieve batch processing and below is my source code.
<split stopOnException="true" > <aggregate aggregationStrategy="GroupedBodyAggregationStartegy" completionSize= 500 completionTimeout= 1000> //Some code //Exception occurs here </aggregate> </split> OnException block here Now here I want to stop the aggregation incase any exception occurs inside it but the aggregator just executes the code from onException block and continues its execution. Please suggest a way to stop aggregation incase of exception. Alternatively if I add the aggregation strategy to the split then It stops on exception but I am not able to provide completionSize or completionTimeout options in split. Please suggest if I am missing something here. Thanks, Aditya