camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dermoritz <tantea...@hotmail.com>
Subject Re: How to relay different parts of message to different endpoints
Date Wed, 06 Aug 2014 13:08:12 GMT
>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.

Mime
View raw message