|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Q full of expired messages : a way to handle the situation |
« View previous topic :: View next topic » |
Author |
Message
|
yaravind |
Posted: Fri Oct 11, 2002 11:12 am Post subject: Q full of expired messages : a way to handle the situation |
|
|
Apprentice
Joined: 17 Jun 2002 Posts: 25
|
Hi All,
I have a Java application which waits on the Queue for 100 seconds for a particular message (request-reply).If the message is not available on the Q within 100 seconds, I will send an error back to the client and will not try again to read the message.
The problem I am facing now is that the most of the Queue is being occupied by unread messages after 20 minutes and all other subsequent (current) messages are being written to the dead-letter-queue (because the Queue is already full). The depth of the Queue is 200. I dont want to increase the Queue depth. Can u guys let me know how to delete or the best way to delete the unread messages from the Queue??? I know that we can set an expiry time for a message, but even though the message expires I think the message will not be taken out of the Queue.
Thanks in advance for your help! |
|
Back to top |
|
 |
clindsey |
Posted: Fri Oct 11, 2002 12:36 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
You need another application (java, c, c++, or whatever)
that periodically browses all the messages on the queue.
This causes the expired messages to be removed.
A sample browser for c is in <mqm>\tools\c\samples\amqsbcg0.c
For java, you can download MQBrowse.java from the software repository of this site. Modify either of these so that no contents are displayed.
There may be others who have tools they can point you to.
Charlie |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|