I found the answer by myself
Seems (but i'm not sure :-)) that choice processor is not the right
processor to use.
In fact, if we use <filter> instead like that :

<route>
<from uri="..." />

                        <filter>
                                <el>${in.headers['TEST '] == 10}</el>
                                <to uri="...." />
                        </filter>

...
</route>

the behaviour is right as expected =).

Mta38



mta38 wrote:
> 
> Hi all,
> Is someone can say me how to test a header exchange value in a xml config
> file.
> For example, if the header TEST exists in my " IN "message and its value
> is 10, I want to do the following:
> 
> <route>
>       <from uri="…"
>       <choice>
>               <when>
>                       In.header.TEST==10
>                       <to uri="…"/>
>               </when>
> 
>               …
>       </choice>
> 
> </route>
> Any help are welcome,
> 
> Best regards
> 
> Mta38
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Write-routing-condition-in-xml-config-file-tp21828008s22882p21831713.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to