camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sparekh <>
Subject Re: Parse Json inside RecipientList
Date Wed, 28 Sep 2016 16:49:50 GMT
How about a custom processor that parses the JSON string (via GSON) into a
JSON object and sets up the HTTP request and headers. I don't believe you
can use JsonPath to extract values, just choice or filter them.

The custom processor would translate String -> JSON Object, extract the id
from JSON object, set up CONTENT_TYPE, METHOD AND URI Headers, remove non
HTTP headers. If you set the Exchange.HTTP_URI header you can remove the
recipientList and have a to endpoint with a dummy value

If the jms message is a serialized POJO then you can use the Camel OGNL
expression to grab the idea via


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

View raw message