If your processor does something like byte[] a = ... byte[] b = ... List returnVal = new ... returnVal.add(a); returnVal.add(b); return returnVal
Then you can use split(body()) to get one message for each of your byte[] On 6 August 2014 14:49, Paul McCulloch <pkmccull...@gmail.com> wrote: > If your processor does: > > > > On 6 August 2014 14:45, dermoritz <tantea...@hotmail.com> wrote: > >> How to do this? The 2 byte[] are created into a processor. I have to >> create 2 >> byte[] from one byte[] and i don't want to read the input byte[] twice. >> >> In meantime i found: >> >> http://camel.apache.org/how-do-i-write-a-custom-processor-which-sends-multiple-messages.html >> >> with this i think i can create 2 messages, set their headers and do the >> split using "choice". >> >> >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/How-to-relay-different-parts-of-message-to-different-endpoints-tp5754836p5754858.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > >