Ah put the log inside the <split>, eg so it becomes
<from uri="sql:SELECT name, value FROM configtable"/>
But I like to set two or more header informations to use it in a freemarker template and therefore the header informations
must be available after the split.
Then you need to use an aggregation strategy on the splitter to merge the data in the message you want to have after the splitter.
A better solution is maybe to use a java bean to set the headers you need. Also headerName= is not dynamic.
Thanks for your answer. I will use a bean to set all my headers.
Is there a reason why headerName= is not dynamic ?
If not - treat my example as a feature request ;-)