|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Move messages form DLQ to Destination queue |
« View previous topic :: View next topic » |
Author |
Message
|
narendra |
Posted: Thu Sep 05, 2002 12:30 pm Post subject: Move messages form DLQ to Destination queue |
|
|
Apprentice
Joined: 04 Jun 2002 Posts: 26
|
HI
Could you please tell me how to forward the messages from the Dead letter queue to the destination queue originally intended.
1) java tool : Strip the DLQ header and put the message on to dest Q
2) runmqdlq with rules
If you have source code, please share with me.
I will really appreaicate that.
Thanks in advance
Narendra  |
|
Back to top |
|
 |
bduncan |
Posted: Thu Sep 05, 2002 2:27 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Narendra,
Usually, there a business rules associated with a message on the dead letter queue. For instance, if the reason the message landed on the dead letter queue was because the putting application tried to put to a queue that didn't exist, well, this is a problem that can't be solved by simply re-routing the message. It'll simply fail again. On the other hand, if the message ended up on the dead letter queue because the destination queue was full, well, this is a transient problem. The dead letter handler application might be smart enough to check that queue and make sure it isn't full anymore before attempting to reroute the message, etc. As you can imagine there are many other situations like these which require some logic to be performed before doing something with the message on the dead letter queue. This is why I recommend writing your own custom dead letter handler. You can start with the source code for the runmqdlq program that ships with MQSeries, and go from there. The key is to parse the dead letter header to determine WHY the message ended up on the dead letter queue. Once you know this, your application can determine whether the condition is transient, or whether there's really nothing that can be done with this message, etc... _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|