How to set queue max length for activemq

房东的猫 提交于 2019-12-12 16:18:35

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/11302265/how-to-set-queue-max-length-for-activemq

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!