Author |
Message
|
kavithadhevi |
Posted: Thu Aug 01, 2002 9:39 am Post subject: MSG EXPIRATION ... |
|
|
 Master
Joined: 14 May 2002 Posts: 201 Location: USA
|
Hi,
I nede some suggestions as how to handle this situation.
The situation is " Message is set with expiry time, after the time expires i dont want the messages to be dead but instead to go to another Local Queue to be able to retrieve them later. " Is this possible, i know it is but i am not sure how to achieve it . Your suggestions would be greatly appreciated and ASAP. _________________ Thanks in Advance.
Kavitha
IBM Certified System Administrator
Websphere MQ v 5.3
www.zealphoenix.com |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Aug 01, 2002 10:01 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Set the Expiration with full data option in the report field and specify the queue you want the message to go to in the replytoqueue and replytoqueuemanager fields.
This report will not be generated when the message expires, but the first time an app does a get on the queue after the messages expires.
This option is not supported on OS/390 unless you are on MQ 5.3 _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
kavithadhevi |
Posted: Thu Aug 01, 2002 11:43 am Post subject: |
|
|
 Master
Joined: 14 May 2002 Posts: 201 Location: USA
|
Hi,
THank you for your posting. Is this for the report message or for any normal message while using the expiration ? Please can you clarify it for me.
If you can , could you explain me pls. In the documentation, i could see only that i could set the msg to be report and the attribute as " MQC.... FULL DATA/ DATA" where should i set it. Please clarify it. _________________ Thanks in Advance.
Kavitha
IBM Certified System Administrator
Websphere MQ v 5.3
www.zealphoenix.com |
|
Back to top |
|
 |
sgopal |
Posted: Thu Aug 01, 2002 12:12 pm Post subject: |
|
|
Acolyte
Joined: 30 Jul 2002 Posts: 63
|
Any normal message can be marked with Expiry report option (MQRO_EXPIRATION_WITH_FULL_DATA) before putting into queue.
You can set the option in MQMD_REPORT field of MQMD Header. |
|
Back to top |
|
 |
bduncan |
Posted: Thu Aug 01, 2002 2:33 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Wow... I had no idea you could do this! Guess you learn something every day.  _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
nimconsult |
Posted: Thu Aug 01, 2002 10:12 pm Post subject: |
|
|
 Master
Joined: 22 May 2002 Posts: 268 Location: NIMCONSULT - Belgium
|
There is a similar discussion on this topic:
http://www.mqseries.net/phpBB2/viewtopic.php?t=4253
You have to make sure that you will issue a MQGET where the expired message qualifies in order to trigger the report message. If you don't the expired message will stay on the queue forever (or with an unacceptable delay). Read the topic mentionned above. _________________ Nicolas Maréchal
Senior Architect - Partner
NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Aug 02, 2002 3:42 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Unfortunatly, there is only 1 replytoq and replytqmanager field in the MQMD, so if your original message is a request type message that needs its reply sent to a particular queue, its expired message reports will also have to go there.
If this is the case, design the app that recieves the replies normally to look at the message type field of the MQMD to determinbe if the message is a reply or a report. Or if you have MQSI, use it to route the messages based on msg type. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
kavithadhevi |
Posted: Fri Aug 02, 2002 12:19 pm Post subject: |
|
|
 Master
Joined: 14 May 2002 Posts: 201 Location: USA
|
Thank you all you for your postings here. It was really helpful for me to try successfully the task i wanted to. _________________ Thanks in Advance.
Kavitha
IBM Certified System Administrator
Websphere MQ v 5.3
www.zealphoenix.com |
|
Back to top |
|
 |
|