Versions Compared

Key

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

...

Tip

Its a good idea to use ${ } placeholders in the method option as shown in the example above. This makes it clear to the read, that this is a Simple token and the actual value is dynamic computed form the Exchange being routed.

Besides the message body, you can pass in the message headers as a java.util.Map type, and declare it as follows:

Code Block

   .bean(OrderService.class, "doSomethingWithHeaders(${body}, ${headers})")

You can also pass in other fixed values than boolean values. For example to pass in an String and integer do as follows:

...