开发者

How to view Message list in HornetQ

开发者 https://www.devze.com 2023-04-06 00:51 出处:网络
We have limited the number of maxSession to 5 @ActivationConfigProperty(propertyName = \"maxSession\", propertyValue = \"5\")

We have limited the number of maxSession to 5 @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "5") If more than 5 concurrent request comes, then it has to wait in the queue. Is there any option to view the number of waiting messages in the queue as a list and manage the queue. Is there any API to view and manage the queue. For example, if a JMS message 开发者_开发问答is waiting for long time, using queue management we can re-initiate message or we can drop the message.


JMS Browsers are made to do that.

You can also use the Management API to do that.

Also, the issue with you doing that is going to be concurrency.

The message may be gone by the time you use anything to list the message.

Also, have you looked at expired messages? if you want a timeout for the message, you could set expiration and listen to the expiry queue. That would be a better design for your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号