|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how QM handles expired messages? |
« View previous topic :: View next topic » |
Author |
Message
|
yaravind |
Posted: Fri Oct 11, 2002 11:32 am Post subject: how QM handles expired messages? |
|
|
Apprentice
Joined: 17 Jun 2002 Posts: 25
|
HI All,
PLS let me know what happens to the expired messages on a Q. are they going to be still there in the Q or the queue manager deletes them?
In short what is the behavior of an expired message and how does the queue or queue manger handle it.
Your help is going to help me meet project dead lines
Thanks in advance. |
|
Back to top |
|
 |
clindsey |
Posted: Fri Oct 11, 2002 12:29 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
An expired message remains in the queue until a GET is done on the message. At that time, it is removed. Your application cannot access once it is marked expired.
If report options on the message descriptor include options for expired messages, some portion of the message or all of the message can be moved to the replytoqueue.
Charlie |
|
Back to top |
|
 |
pgorak |
Posted: Sun Oct 13, 2002 11:51 pm Post subject: |
|
|
 Disciple
Joined: 15 Jul 2002 Posts: 158 Location: Cracow, Poland
|
GET call results in removing a message that would have been retrieved had it not already expired. If you do not use match options, you will delete (with both browse and non-browse GET) all the expired messages on the queue up to the first unexpired, which will be returned (or, if there is no such a message, you will get MQRC_NO_MSG_AVAILABLE).
Note that in the case of using match options and msg/correl ID you may end up having a number of expired messages held in the queue - if this is the case, you can consider periodically browsing the queue (without match options), to clear it up.
Piotr |
|
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
|
|
|
|