THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
In this case, the list of recipients are contained in the header 'recipientListHeader'.
And the same example in Java DSL:
Code Block | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
from("direct:a").recipientList().header("recipientListHeader");
|