Reputation: 21380
Can I use a router in a chain? Practically the recipient of the router should be a chain. It should be something like this
<int:chain>
<int:recipient-list-router>
<int:recipient>
<int:chain>
...
</int:chain>
</int:recipient>
...
</int:recipient-list-router>
</int:chain>
Upvotes: 1
Views: 1106
Reputation: 174664
No; a recipient in that context is a channel not an endpoint.
You would have to declare the (inner) chain as a top level element with an input-channel
and the recipient would reference that input channel.
<int:chain ...>
<int:recipient-list-router>
<int:recipient channel="foo" />
...
</int:recipient-list-router>
</int:chain>
<int:chain input-channel="foo">
...
</int:chain>
Of course, if the RLR
is the only element in the first chain, as in this example, it is worthless and you might as well declare it as a top level element.
Upvotes: 2