Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: CAMEL-907

...

In this case, the list of recipients are contained in the header 'recipientListHeader'.

And the same example in Java DSL:

Code Block
java
java

  from("direct:a").recipientList(header("recipientListHeader"));

And with a slighly different syntax where you use the builder to the fullest (i.e. avoid using parameters but using stacked operations, notice that header is not a parameter but a stacked method call)

Code Block
java
java

  from("direct:a").recipientList().header("recipientListHeader");