camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Trenaman" <TRENA...@progress.com>
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 <dirk.rybinski@itellium.com>
To: users@camel.apache.org <users@camel.apache.org>
Sent: Fri Dec 04 01:33:38 2009
Subject: Splitting nested objects ...


Hi,

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
message). 

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
....


DRy


-- 
View this message in context: http://old.nabble.com/Splitting-nested-objects-...-tp26635785p26635785.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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