Versions Compared

Key

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

...

Or you could use any other of Camel Languages.

Info

Notice that the Recipient List can send to multiple Endpoints if the expression returns either a java.util.List, array, java.util.Iteratable or a String. If the returned value is a String then you can specify multiple endpoints separated by comma. So if you only want to send to one endpoint and use a String type, then beware of the comma. If you need to use a comma, then you can change or turn off the separator on the Recipient List.

For example, to turn it, when using Camel 2.13 onwards:

.recipientList(simple("sql:select firstName, lastName from myTable where user = ${header.user}"), "false")

And for users of Camel 2.12.x or older, we use a non existing delimiter char:

.recipientList(simple("sql:select firstName, lastName from myTable where user = ${header.user}"), "@")