Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Calling Processor in Spring DSL

$
0
0
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:

<process>
<groovy>Exchange exchange -> println (exchange.in.body)
</groovy><process>

Thoughts?
Max

Viewing all articles
Browse latest Browse all 5648

Trending Articles