camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Bourke <>
Subject Conditional processing in Spring DSL
Date Tue, 07 Dec 2010 12:04:33 GMT


I have been trying to influence whether or not the next endpoint gets
processed based on some aspect of the mesage body using spring DSL and am
having no luck with it. I have tried various incarnations of the following
configuration (including &lt;CHOICE&gt;&lt;WHEN&gt; tags in place of

                        ${out.body}.size > 0

In my mind, this should only Marshal the data and create the output file if
the size of the Map in the Message body is greater than zero. The bean
(formatOutput) always adds a Map object to the body but this may contain no

Can you tell me what I am doing wrong please?

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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message