Can you now assign an unique sequence number that can order them correctly So that the sequence number are truely unique, also when you say two objects are equal.
eg try to forget about CAmel and think about what logic you need to re-order the message in the correct order, eg what the sequence number should be for each element. And when you have that then you can use that to assign truely unique sequence numbers, that the Camel sequencer EIP uses. On Wed, Apr 26, 2017 at 7:27 PM, Moshe Recanati <[email protected]> wrote: > Hi, > I would like to use Camel with resequencer in order prioritize two Java > Objects based on custom rules. > I thought about using stream and custom comparator however in most cases > the objects are equal so Camel is ignoring them. > > Do you have an alternative to such requirement? Can I use batch processing > and custom comparator? > Any other ideas? > This is crucial for me, without this ability I'll need to find other > solution. > > Thank you in advance, > Moshe -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
