It seems like it should be simple, sorry for the pun. I am trying to write a camel header as part of the DSL spring route. I saw the answer in Java DSL , but I searched in vain for how to get it working in DSL spring. I tried:
<log message="ftping $simple{header.CamelFileName}"/>
and:
<log message="ftping ${header.CamelFileName}"/>
and a few other permutations / variations, but they all just write this text verbatim (i.e. don't replace the actual title name).
What am I missing?
update: here is most of my xml file:
<split> <simple>${body}</simple> <setHeader headerName="CamelFileName"> <simple>${body.batchNumber}.xml</simple> </setHeader> <log message="SLH - 5 -- marshalling an EFileBatch to XML" loggingLevel="DEBUG" /> <marshal> <jaxb prettyPrint="true" contextPath="generated.gov.nmcourts.ecitation" partClass="generated.gov.nmcourts.ecitation.NMCitationEFileBatch" partNamespace="EFileBatch" /> </marshal> <log message="SLH - 6 -- xslt transform to add schema location" loggingLevel="DEBUG" /> <to uri="{{addSchemaLocationXsltUri}}"/> <log message="SLH - 7 -- ftp now initiating" loggingLevel="DEBUG" /> <log message="ftping ${headers.CamelFileName}"/> <to uri="{{ftpOdysseyInputPath}}"/> <log message="SLH - 8 -- ftp now complete" loggingLevel="DEBUG" /> </split>
source share