camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad Johnson <brad.john...@mediadriver.com>
Subject Re: Parse Json inside RecipientList
Date Thu, 29 Sep 2016 05:30:19 GMT
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 <shabin@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.
>

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