Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set queue max length for activemq

I'm wondering if I can configure a queue's max length on activemq, so that when the queue's length touch the limit, the enqueue operation will failed or throw exceptions. is anybody know about this question? any help will be very appreciated.

Thanks a lot.

like image 822
WarriorOfKnight Avatar asked Jan 24 '26 11:01

WarriorOfKnight


1 Answers

Take a look at Producer Flow Control http://activemq.apache.org/producer-flow-control.html

It limits your queue on the amount of memory the queue takes so its not a numbers of messages approach but a memory sizing approach. You can have an exception thrown back to the client when the broker reaches its max resources limit.

like image 148
Tim Bish Avatar answered Jan 26 '26 01:01

Tim Bish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!