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 » solved: Message Expiry

Post new topic  Reply to topic
 solved: Message Expiry « View previous topic :: View next topic » 
Author Message
vam
PostPosted: Thu Apr 15, 2010 6:16 am    Post subject: solved: Message Expiry Reply with quote

Acolyte

Joined: 16 Mar 2010
Posts: 70

Hello MQTeam,

I am working on message expiry concept.I had created a local queue named Samp in Queue Manager QM1. Then using RFHUTIL i had placed a message in to it.I this process I had set expiry time as 20 in MQMD header related to this message.But after putting the message in to the Samp queue and checked the properties of message and I found it is unlimited.

How come we can set this expiry time to a message using RFHUTIL rather than using APIs.

Need your inputs team.

regards,
Vam
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Apr 15, 2010 6:32 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

How did you set expiry in the MQMD?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
vam
PostPosted: Thu Apr 15, 2010 6:41 am    Post subject: Expiry in MQMD Reply with quote

Acolyte

Joined: 16 Mar 2010
Posts: 70

I gave the path of my text file,QM Name and Queue name in the Main tab of RFHUTIL and I went to the MQMD tab of RFHUTIL and gave the time(as 20) in expiry coloum.

After giving the expiry time, I came back to Main tab and clicked on WriteQ option,thus the it wrote message to the Queue. And waited,but the message doesnt expires.Then checked the message properties and found ,that the expiry is still as default attribute.i,e.Unlimited.

Could you please let me know, how to set expiry time to message using RFHUTIL?
Back to top
View user's profile Send private message
vam
PostPosted: Thu Apr 15, 2010 6:46 am    Post subject: Message Expiry Reply with quote

Acolyte

Joined: 16 Mar 2010
Posts: 70

If it is not possible through RFHUTIL, please let me know the sample command or code used for setting it through MQ API(just for reference).

Thanks,
Vam
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Apr 15, 2010 6:57 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
...setting it through MQ API(just for reference).

Did you read the WMQ Application Programming Reference manual regarding the expiry value of the MQMD?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
vam
PostPosted: Thu Apr 15, 2010 7:04 am    Post subject: Message Expiry Reply with quote

Acolyte

Joined: 16 Mar 2010
Posts: 70

Hello Bruce,

I had gone through the below link:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzak.doc/csqzak10.htm.

Its saying it should be greater than zero and I followed as such.
Please correct me if I am wrong and guide me.

thanks,
vam
Back to top
View user's profile Send private message
vam
PostPosted: Thu Apr 15, 2010 10:02 am    Post subject: Message Expiry Reply with quote

Acolyte

Joined: 16 Mar 2010
Posts: 70

Hello Team,

Fianlly we got it.The problem is in the MQMD header we just gave expiry time,but missed the Msg Type in RFHUTIL.

After defining it,its working fine.


thanks
Vam
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 » solved: 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.