Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
// properties
cool.start=direct:start
cool.showid=true
cool.result=result

// route
from("#{cool.start}")
    .to("log:#{cool.start}?showBodyType=false&showExchangeId=#{cool.showid}")
    .to("mock:#{cool.result}");

You can also your property placeholders when using ProducerTemplate for example:

Code Block

template.sendBody("#{cool.start}", "Hello World");

Example with Simple language

...