Dan,
Each exchange executing within the split is independent of each other.
Incrementing the value of a header on one split exchange will have no effect on
another.
If you want to get the number of split items, it is available after the split
in Exchange.CamelSplitSize header.
In addition,
>From Claus' 2011 blog I tried to implement a counter but I cannot get it
to work inside a splitter (I need a count of only a subset of items).
The example code is:
${header.myCounter}++
By itself this code fails because myCounter is not a number.
So I initialized it outside the Split bu