On Wed, Feb 27, 2013 at 11:46 AM, developpef <src...@orange.fr> wrote: > Hello, > > Here is what happens : > > My route is : > > from("direct:inside") > .log(LoggingLevel.INFO, "**** start") > .beanRef(MY_SERVICE, "retrieveDataList") > .log(LoggingLevel.INFO, "**** before split ${body}") > .split(body()) > .log(LoggingLevel.INFO, "**** after split ${body}") > > And my logs : > > |2013-02-27 11:30:58|INFO|route3|**** start| > |2013-02-27 11:30:58|INFO|route3|**** before split []| > > That's all! When my bean retrieves an empty list, the SPLIT shortcuts my > whole route and nothing is done after on it... With a not empty list, it > works fine. > > I'm using Camel 2.10.2 > > Did I miss something? >
No the splitter only outputs messages if there is data to split. And if you have an empty list / null body etc. then nothing is output from the splitter. If you want to do stuff AFTER the splitter is fully done, then close the block with end(), eg form to split body to inside splitter end() to outside splitter > Thanks > > > > ----- > http://developpef.blogspot.com > -- > View this message in context: > http://camel.465427.n5.nabble.com/Split-an-empty-list-tp5728214.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen