camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Trenaman" <>
Subject Re: Splitting nested objects ...
Date Fri, 04 Dec 2009 06:53:45 GMT
Try this: write a custom processor which sets the out message to the list of addresses. Then
do your split() directly after that: the split() processor is smart enough to know how to
split a List of objects!

----- Original Message -----
From: DRy <>
To: <>
Sent: Fri Dec 04 01:33:38 2009
Subject: Splitting nested objects ...


I have to split a message that contains an object (lets say Customer) that
contains a list of other objects (let say List<Address>) in its body into n
messages (where n is size of List<Adress>) that contain the nested object
(lets say Adress[i]) in the body (all the same header as the original

How can this be done in an easy way (with a splitter) ... ?

The aim ist to get one Message (with one Customer in the body) out from a
JMS-Queue and put n messages (with one Adress[i] in the body) to a JMSQueue


View this message in context:
Sent from the Camel - Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message