constant is 100% constant, eg exactly what you type. For dynamic values use a scripting language like simple, groovy etc
On Mon, Jul 29, 2013 at 10:25 AM, Bob Jolliffe <[email protected]> wrote: > I am trying to set the value of a header in a route like: > > ... > <c:log message="${body.get('properties').get('Dhis2UID')}" /> > <c:setHeader headerName="uid" >><c:constant>${body.get('properties').get('Dhis2UID')}</c:constant></c:setHeader> > ... > > The log message displays the expected value. > > But the header is being populated with the literal text > "${body.get('properties').get('Dhis2UID')}". > > Any idea what I am doing wrong? > > Regards > Bob -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
