There are a number of ways but perhaps the simplest would be something like:
.setHeader("customerId","${body.id}") right before the marshaling. Then in the http statement where the ID goes you can fish it out of the header with something like ${header.customerId}. I wrote all that free hand just now with out using an IDE so be suspicious of the specifics but comfortable with the general approach. On Wed, Sep 28, 2016 at 11:35 PM, Shabin5785 <sha...@outlook.com> wrote: > sparekh wrote > > If the jms message is a serialized POJO then you can use the Camel OGNL > > expression to grab the id via body.id before marshalling it to JSON. > > > > Thanks, > > sparekh > > Message is a serialized pojo. If i extract the id before marshalling, how > can i hand it over to the next stage? > > > > -- > View this message in context: http://camel.465427.n5.nabble. > com/Parse-Json-inside-RecipientList-tp5788162p5788181.html > Sent from the Camel - Users mailing list archive at Nabble.com. >