I want to exit from Camel Loop at some condition. I am using Camel 2.15
.loop(simple("${exchangeProperty.loopCount}"))
.to("bean:xxx?method=exitFromLoop")
.end()
I tried changing CamelLoopIndex and CamelLoopSize in exitFromLoop method, but didn't worked for me.
Is there any alternative to this e.g using choice/when?