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 » Could an expired message be moved to another queue?

Post new topic  Reply to topic
 Could an expired message be moved to another queue? « View previous topic :: View next topic » 
Author Message
issac
PostPosted: Thu Dec 23, 2010 11:01 pm    Post subject: Could an expired message be moved to another queue? Reply with quote

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
View user's profile Send private message
fatherjack
PostPosted: Fri Dec 24, 2010 1:19 am    Post subject: Re: Could an expired message be moved to another queue? Reply with quote

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
View user's profile Send private message
bob_buxton
PostPosted: Fri Dec 24, 2010 2:43 am    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Fri Dec 24, 2010 4:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
HubertKleinmanns
PostPosted: Sun Dec 26, 2010 10:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
issac
PostPosted: Sun Dec 26, 2010 10:35 pm    Post subject: Thank you. It's okay to use the Report feature Reply with quote

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
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 » Could an expired message be moved to another queue?
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.