camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From miguelfdez <>
Subject "When" clause not working with header element with namespace
Date Thu, 13 Nov 2014 13:03:04 GMT

I'm following the "Message Router" pattern explained in
However, I'm having problems with conditions on headers with namespaces.

The XML message I'm receiving is like this:
<DF xmlns="http://mycompany/smth">myElement</DF>
<ns2:processIncomingMessage xmlns:ns2="">

And this is my route:
		.log("Header: ${headers}")
		.log("Received message for 'CamelInterfaceService' : ${body}")

However, "OtherService" is not called.

If I change
<DF xmlns="http://mycompany/smth">myElement</DF>
it works...but it is something I cannot really, how can I modify
my camel route to make it work?

Thank you!

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message