When you use the resequencer(), you need to specify the to endpoint. The route can be changed to
from(...) .choice() .when(...) .resequence(header(...)).stream().to(“direct:A”) .endchoice() .when(...) .resequence(header(...)).stream().to(“direct:A”) .endchoice() .end() from(“direct:A”).recipientList(...) -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On April 27, 2015 at 11:41:44 PM, Sumit (summ.chakrabo...@gmail.com) wrote: > > Hi, > > I have applied the resequencer() function conditionally like > the following > example: > > from(...) > .choice() > .when(...) > .resequence(header(...)).stream() > .endchoice() > .when(...) > .resequence(header(...)).stream() > .endchoice() > .recipientList(...) > .end()