Author |
Message
|
issac |
Posted: Thu Dec 23, 2010 11:01 pm Post subject: Could an expired message be moved to another queue? |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
Hello,
If a message is expired, it's said to be eligible to be discarded. But can WMQ be configured to move expired messages to another queue?
Thanks in advance!  _________________ Bazinga! |
|
Back to top |
|
 |
fatherjack |
Posted: Fri Dec 24, 2010 1:19 am Post subject: Re: Could an expired message be moved to another queue? |
|
|
 Knight
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
|
issac wrote: |
Hello,
If a message is expired, it's said to be eligible to be discarded. But can WMQ be configured to move expired messages to another queue?
Thanks in advance!  |
If a message is expired you cannot GET it, so how do you think you might be able to move it somewhere else. _________________ Never let the facts get in the way of a good theory. |
|
Back to top |
|
 |
bob_buxton |
Posted: Fri Dec 24, 2010 2:43 am Post subject: |
|
|
 Master
Joined: 23 Aug 2001 Posts: 266 Location: England
|
You could specify that you want an expiration report message placed on the reply to queue by setting report options to MQRO_EXPIRATION_WITH_FULL_DATA
The message will have a report header before the data portion of the original message. _________________ Bob Buxton
Ex-Websphere MQ Development |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Dec 24, 2010 4:34 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
...can WMQ be configured to move expired messages to another queue? |
The short answer is no. Once a message has expired, it cannot be consumed by any application.
Mr. Buxton's suggestion implies a change to the requesting application program that, as Bob explained, will cause the complete expired message to be returned to the reply-to-queue that the requesting application created. The application would then need to get the message from the reply-to-queue, and then mqput the message to another queue. _________________ 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 |
|
 |
HubertKleinmanns |
Posted: Sun Dec 26, 2010 10:06 pm Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
bruce2359 wrote: |
Quote: |
...can WMQ be configured to move expired messages to another queue? |
The short answer is no. Once a message has expired, it cannot be consumed by any application.
... |
Not with MQGET, but you could copy the Q file and have a look with an editor like "vi" or so. It is not comfortable, but maybe for debugging reasons useful. _________________ Regards
Hubert |
|
Back to top |
|
 |
issac |
Posted: Sun Dec 26, 2010 10:35 pm Post subject: Thank you. It's okay to use the Report feature |
|
|
 Disciple
Joined: 02 Oct 2008 Posts: 158 Location: Shanghai
|
Thank you all. I've managed to do this by setting the Report field to MQRO_EXPIRATION_WITH_FULL_DATA. Thanks again! _________________ Bazinga! |
|
Back to top |
|
 |
|