camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apara <>
Subject How to pass properties between endpoints...
Date Mon, 02 Sep 2013 02:06:49 GMT
Before converting the event to JSON, I would like to store some variables
from the event and later use them in a to: destination.

So, am using header to stash away the values prior to conversion.  Is this
the best way of doing this, or should I be using properties?

            <camel:setHeader headerName="userId">

            <camel:setHeader headerName="eventName">

                <camel:json library="Jackson"/>

            <camel:convertBodyTo type="java.lang.String" />

${in.header.eventName}, ${body})" />


However, when I try to use the properties, I always a runtime exception
telling me that a PropertiesComponent needs to be defined inside of the
camel context.  However, I am not sure how to create a properties component
inside of the camel context.  I tried with just <properties/> but that did
not quite do the trick.

Any clues?


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

View raw message