To me this sounds like a combination of The EIPs *RoutingSlip* and *Composed Message Processor*. Composed Message Processor Where most of the work will be done by a custom Message *Aggregator*. The *Splitter *part of the Composed Message Processor needs to split line by line. The Aggregator needs to fetch the first line, determine further routing based on it, then store the value for use as a routing slip for further packages. For lines beside the first the Aggregator needs to join the rest of the lines in appropriate chunks as well as adding the routing slip.
-- View this message in context: http://camel.465427.n5.nabble.com/processing-data-based-on-the-metadata-in-the-file-using-apache-camel-tp5752593p5752948.html Sent from the Camel - Users mailing list archive at Nabble.com.
