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 » General IBM MQ Support » Message expiry

Post new topic  Reply to topic
 Message expiry « View previous topic :: View next topic » 
Author Message
Sunntu
PostPosted: Mon Aug 05, 2002 12:38 am    Post subject: Message expiry Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Mon Aug 05, 2002 4:23 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7716

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
View user's profile Send private message
poki
PostPosted: Mon Aug 05, 2002 1:34 pm    Post subject: discard message Reply with quote

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
View user's profile Send private message
LearnMQSI
PostPosted: Fri Jan 10, 2003 11:12 am    Post subject: MQMD Expiry Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Fri Jan 10, 2003 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
LearnMQSI
PostPosted: Fri Jan 10, 2003 1:17 pm    Post subject: Expiry Value Reply with quote

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
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 » General IBM MQ Support » Message expiry
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.