No, Spring DSL don’t support that , but you can use simple language which is
supported by log to print the message body if you like.
<log message="${body}” />
BTW, the Java DSL you should is wrote in groovy.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On April 14, 2014 at 2:39:26 AM, Max Bridgewater ([email protected])
wrote:
> Hi,
>
> Does Spring DSL support Groovy in the processor construct? With Java DSL, I
> can do this:
>
> from("direct:test")
> .process { Exchange exchange -> println (exchange.in.body) }
> .process { println (it.in.body) }
>
>
> What about Spring DSL?
>
> I was hoping something like this would work:
>
>
> Exchange exchange -> println (exchange.in.body)
>
>
> Thoughts?
> Max
>