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.
Asked
Active
Viewed 3,250 times
1 Answers
5
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.

Clebert Suconic
- 5,353
- 2
- 22
- 35
-
hi Clebert, is there any GUI for viewing Hornetq messages and can you tell how to connect jms browser to hornetq. – vairam Sep 20 '11 at 12:27
-
JMS Browser is part of the JMS API. There's a lot of information on the JMS Tutorial. As for viewing the messages, you can use the list methods on the JMX methods. – Clebert Suconic Sep 20 '11 at 14:09
-
if you don't have any more questions, can you please accept the answer? – Clebert Suconic Sep 23 '11 at 16:43
-
hi clebert, can you tell me which will be better option for hornetq management, Core Management API,JMS Management API and Using Management Via JMX, – vairam Oct 01 '11 at 07:29
-
It really depends on your use case vairam.. there's no preferred way – Clebert Suconic Oct 16 '13 at 16:38