camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From titexe <>
Subject Filtering with the simple expression does not work ?
Date Thu, 08 Oct 2009 16:41:29 GMT


My route is simple, I have a incoming queue (IN), All messages received in
this queue is routed to XML Queue or CSV Queue according to the following

If the Action field located in the header of the message as field properties
(Message Properties) is equal to XML or CSV

This route does not work using the simple expression?

Below my configuration:

<camelContext id="camel" trace="true"
	<from uri="activemq:queue:IN"/>
				<simple>${in.header.Action} == 'XML'</simple>
				<to uri="activemq:queue:XML"/>
				<simple>${in.header.Action} == 'CSV'</simple>
				<to uri="activemq:queue:CSV"/>
                    <to uri="activemq:queue:ERROR"/>

Version Camel : 1.6.1
Version Java    : 1.6
Version Activemq : fuse message broker

Thank you in advance

Best regards,


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

View raw message