http://camel.465427.n5.nabble.com/content-based-routing-based-on-header-value-td2449988.html
On Tue, Aug 10, 2010 at 5:42 PM, Mark Webb <[hidden email]> wrote:
The <header> will only grab a header. It's not a scripting language to
evaluate expressions/predicates etc.
For that you can use any of the more powerful languages
http://camel.apache.org/languages.html
For example you can use the built in simple language
http://camel.apache.org/simple.html
Which is being explained in the appendix A of the Camel book (avail in
next MEAP update).
<simple>${header.dest} == 'stuff'</simple>
> Thanks,
> Mark
>
==================
在使用simple前不要调用 exchange.getOut(), 否则会导致in.header中的缺失