|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message expiry |
« View previous topic :: View next topic » |
Author |
Message
|
Sunntu |
Posted: Mon Aug 05, 2002 12:38 am Post subject: Message expiry |
|
|
Novice
Joined: 04 Aug 2002 Posts: 11
|
Hi,
What is the default message expiry time ? If I do not change the expiration time of a message how long would it remain in the queue ?
One more, if a persistent message expires (or will it expire ?) will it be discarded from the queue.
Regards
Sunntu |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Aug 05, 2002 4:23 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
The default is -1, which means Unlimited;it will never expire.
A persistent message can expire, if you change the default value from Unlimited. Persistence simply means that until the message expires, if the QM goes down, the message will still be on the queue when the QM comes back up. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
poki |
Posted: Mon Aug 05, 2002 1:34 pm Post subject: discard message |
|
|
 Newbie
Joined: 05 Aug 2002 Posts: 9 Location: US
|
A message that has expired is never returned to an application ,so the value in the Expiry field of the message descriptor after a successful MQGET call is either greater than zero, or the special value MQEI_UNLIMITED.
If a message is put on a remote queue, the message may expire (and be discarded) whilst it is on an intermediate transmission queue, before the message reaches the destination queue. |
|
Back to top |
|
 |
LearnMQSI |
Posted: Fri Jan 10, 2003 11:12 am Post subject: MQMD Expiry |
|
|
 Centurion
Joined: 20 Aug 2002 Posts: 137
|
Hi There,
If I want to make a message Unlimited explicitly, how do I code it?
should I say something like this:
MQMD.Expiry = Unlimited OR is there any other way of coding this?
Thanx and appreciate your help |
|
Back to top |
|
 |
bower5932 |
Posted: Fri Jan 10, 2003 12:42 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I think you want to use MQEI_UNLIMITED from cmqc.h. |
|
Back to top |
|
 |
LearnMQSI |
Posted: Fri Jan 10, 2003 1:17 pm Post subject: Expiry Value |
|
|
 Centurion
Joined: 20 Aug 2002 Posts: 137
|
Hi Bower5932,
Thank you so much for your reply.
In order to use MQMD.Expiry = MQEI_UNLIMITED, do I have to mention cmqc.h name in my application?
Once again, thanx a lot for your help.
bower5932 wrote: |
I think you want to use MQEI_UNLIMITED from cmqc.h. |
|
|
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
|
|
|
|