camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BARRAULT <herve.barra...@gmail.com>
Subject Mixed Messages and Resequencer
Date Wed, 29 Feb 2012 08:45:57 GMT
Hi,

I would order messages in a route
I think the resequencer is the right EIP for this but i have some
difficulties to see how to apply it in my case.

Classical Behavior :
input : M[1] M[3] M[2] M[4] , the output will be M[1] M[2] M[3] M[4].

In my case i will have the following entry :

M[A,1] M[B,1] M[B,2] M[A,4] M[A,5] M[B,4] M[A,3] M[B,3] M[A,2], M[B,5]

I would have at the end :
M[A,1] M[A,2] M[A,3] M[A,4] M[A,5]
M[B,1] M[B,2] M[B,3] M[B,4] M[B,5]

We can define one route which separate "A" and "B" messages [basic message
router].

Then two routes (one for "A", one for "B" which do the resequencing [basic
resequencer] ).

If A and B are defined before runtime it's simple.
If A and B are not fixed but is a dynamic list, i can't see how to
implement this.

Is there a way to have this behavior ?

Thanks for answers

Regards

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message