All,
I have a requirement where we take data from rabbitmq and insert them into
redis
Below is my exchange taken from stacktrace:
Exchange[
        Id                  ID-MRT-GMH1119-49410-1418246041340-0-2
        ExchangePattern     InOptionalOut
        Headers            
{breadcrumbId=ID-MRT-GMH1119-49410-1418246041340-0-1,
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">
<simple>"${body.type)"</simple></setHeader>
            <setHeader
headerName="CamelRedis.Value"><simple>"${body.id)"</simple></setHeader>

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





--
View this message in context: 
http://camel.465427.n5.nabble.com/Simple-expression-with-JSON-and-redis-tp5760520.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to