Hi

I think the properties means to set the Camel Exchange properties.
There is no properties for Camel Message.

Willem

lekkie wrote:
Hi guys,

I 'd like to pass an header in between two NMR endpoints.

Here is my config:

<route>           
        <from ref="restURL" />
        <!--
        <setOutHeader headerName="routeId">
<constant>myroute</constant> </setOutHeader> -->
                <setProperty propertyName="routeId">
                        <constant>myroute</constant>
                </setProperty>
<to uri="nmr:router1"/> </route>
and here is my router config

<route>
                <from uri="nmr:router1"/>               
                <setHeader headerName="routeId">
<property>routeId</property> </setHeader> <bean ref="router1ProcessorRecipientList" method="route"/> </route>

I read somewhere you cannot propagate headers across endpoints, except
through properties, but the snippet above did not work.

I'd appreciate any insight into how can be properly done.

kr.

Reply via email to