On Fri, Aug 12, 2011 at 5:37 PM, jeevan.koteshwara <[email protected]> wrote: > Hi Claus, > one more quwstion here. > > I am splitting my messages using custom iterator. But, I am seeing once the > route is finished (i.e. when a file routed to destination), messages are > getting overwrited in it. > > Say, my starting message will be "A,B,C". I split them into some chunks say > "A" , "B" and "C". But when the route is finished, I am seeing only "C" in > the file. > > My route is something like below. > > from(src).split().method(splitbean which returns an custom > Iterator).streaming().to(dest); > > When I debug my code, I could see that the default aggreagtion (inside > camel) is not able to get the old exchage data. (I am not sure about this). > > Could you please tell me where it might have went wrong. >
Are you writing to the same file name. Then take a look at the fileExist option on the file component http://camel.apache.org/file2 It will by default override. Maybe you want to Append instead? > -- > View this message in context: > http://camel.465427.n5.nabble.com/Split-large-file-into-small-files-tp4678470p4693727.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
