camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yuanchen <>
Subject How to get header/property info out from sendBodyAndHeader/sendBodyAndProperty
Date Fri, 19 Nov 2010 14:25:47 GMT

I am trying to use ProducerTemplate.sendBodyAndProperty(endpoint, body,
property, propertyValue) or sendBodyAndHeader(endpoint, body, header,
headerValue) to passing some info in the property/header to endpointUri
(used as file name) defined in CamelContext spring config below.  How do I
configure the camel context to get the string value from header/property
passed in sendBodyAndHeader/sendBodyAndProperty? 

<camelContext id="camel" xmlns=""> 
            <from uri="direct:endpoint"/> 
            <to uri="file:/?fileName=${some string passed from

Thanks a lot for the help, 

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

View raw message