Hi Thanks for your quick reply. Here unmarshal is not working while I'm using
when , if possible let me know how write bindy foe a file which is having
different dataformats(headers) ,like "0001" some dataformat and "0002"
specifies some other data format.

from("file:{{filepath}}?noop=true") 
  split(body().tokenize("\n")) 
  .streaming() 
  .when().body().startsWith("0001")).bean("SavetoMap")
  .when().body().startsWith("0002")).bean("SavetoMap")
  .when().body().startsWith("0003")).bean("SavetoMap")

  //unmarshal not working
   .unmarshal(bindy) 
   .aggregate(constant(true), getFileAggregationStrategy()).end(); 

 





--
View this message in context: 
http://camel.465427.n5.nabble.com/Split-file-based-on-content-tp5794986p5794990.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to