ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Q full of expired messages : a way to handle the situation

Post new topic  Reply to topic
 Q full of expired messages : a way to handle the situation « View previous topic :: View next topic » 
Author Message
yaravind
PostPosted: Fri Oct 11, 2002 11:12 am    Post subject: Q full of expired messages : a way to handle the situation Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
clindsey
PostPosted: Fri Oct 11, 2002 12:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Q full of expired messages : a way to handle the situation
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.