Versions Compared

Key

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

...

The recipientList element of the Spring DSL can utilize an exchangeProperty expression. In this example, the list of recipients are contained in the property myProperty.

Code Block
languagexml
<route>
  <from uri="direct:a"/>
  <recipientList>
    <exchangeProperty>myProperty</exchangeProperty>
  </recipientList>
</route>

...

And the same example in Java DSL:

Code Block
languagejava
from("direct:a")
  .recipientList(exchangeProperty("myProperty"));

...