Use split() to turn your 2 byte[] in to two messages?
On 6 August 2014 14:08, dermoritz <tantea...@hotmail.com> wrote: > From unmarshal().gzip() comes a byte[] (with mixed number of fields in each > line). > > My processor scans the byte[] line by line some lines have 35 ',' some have > 65 ',' and i want to scan each byte[] only once. > So i create 2 byte arrays one with 35er lines and one with 65er lines. My > question is what to do with this 2 byte array. I think a have to create 2 > exchanges within processor and set the header. > > Sorry i don't see how this works with one byte[] and setting 2 different > headers. Could you probably show a route processor that could do this > (pseudo code would be sufficient) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-relay-different-parts-of-message-to-different-endpoints-tp5754836p5754854.html > Sent from the Camel - Users mailing list archive at Nabble.com. >