bhantol
bhantol

Reputation: 9616

How to use multiple Queues in a single gateway

I have multiple Queues and I want to use a single Gateway. I have default channel. Is there a simple way to define multiple source of Queues.

In this case "Simple" is defined as simplicity of runtime complexity than configuration.

Upvotes: 1

Views: 273

Answers (1)

Artem Bilan
Artem Bilan

Reputation: 121560

Looks like you need RecipientListRouter:

<int:recipient-list-router input-channel="routingChannel">
  <int:recipient channel="queue1"/>
  <int:recipient channel="queue2"/>
</int:recipient-list-router>

Upvotes: 1

Related Questions