bschandramohan
bschandramohan

Reputation: 2006

Restrict number of Listeners in JMS Queues

I was just looking at JMS and activeMq documentation to see if we can restrict the number of consumers that can subscribe to a given queue. I see the options for concurrent consumers that can receive messages but NOT for all consumers. Do you know of any such property where we can say in one specific queue, only 2 listeners at a max can register. The 3rd listener registering should get an error response and can retry to see if a slot is available after 1 hour?

Upvotes: 0

Views: 256

Answers (1)

Tim Bish
Tim Bish

Reputation: 18356

You can write your own Broker Plugins and attempt to implement what you want. There is no option to do this by default on the Broker, and the retry logic would need to be something you implement on the client side as well.

Upvotes: 1

Related Questions