camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmh <>
Subject Simple expression with JSON and redis
Date Wed, 10 Dec 2014 21:20:57 GMT
I have a requirement where we take data from rabbitmq and insert them into
Below is my exchange taken from stacktrace:
        Id                  ID-MRT-GMH1119-49410-1418246041340-0-2
        ExchangePattern     InOptionalOut
CamelRedelivered=false, CamelRedeliveryCounter=0, contentEncoding=null,
contentType=null, correlationId=null, expiration=null, messageId=null,
priority=null, replyTo=null, type=null}
        BodyType            java.util.HashMap
        Body                {id=lol919xsx, op=i,
objectId=5488b7a11c64c229e3627bce, o={createdOn=2014-11-24T10:13:21.444Z,
modifiedOn=null, attributes=[{name=Crib 1, value=Inventory}, {name=Access,
value=Level1}], tagId=lol919xsx}, type=tags}
The data I am pulling from rabbitmq is in JSON. I converted it into a map
and then I tried to use simple expression language to insert data into redis

Below is my syntax
   <setHeader headerName="CamelRedis.Key">

I kept getting incorrect syntax exception.
Can anyone help me with my syntax?
Thanks,    Gordon

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

View raw message