Author |
Message
|
Manikandan |
Posted: Mon Oct 11, 2004 10:16 pm Post subject: dead letter queue |
|
|
Voyager
Joined: 07 Jul 2004 Posts: 78
|
How to read the dead letter queue? |
|
Back to top |
|
 |
kirani |
Posted: Mon Oct 11, 2004 10:21 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You can use standard DLH program that comes with WMQ or write your own. Messages in DLQ will have one additional header called Dead Letter HEader. You can write a simple program to read these messages and do whatever you plan to do with them. There is a chapter in System Administration Guide on DLH. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
leo> |
Posted: Tue Oct 12, 2004 7:21 am Post subject: |
|
|
 Apprentice
Joined: 06 Oct 2004 Posts: 42
|
You can write a simple rule file test.rul file containing a script like:
Code: |
inputq('SYSTEM.DEAD.LETTER.QUEUE') inputqm('TESTQM') WAIT(NO)
DESTQ('APPL1.DEST.Q') ACTION(FWD) FWDQ('APPL1.SRC.Q') FWDQM(TESTQM) HEADER(NO) |
and then run the command runmqdlq like:
Code: |
runmqdlq < test.rul
|
This will move the messages intended for 'APPL1.DEST.Q' from DLQ to the Q named 'APPL1.SRC.Q' _________________ IBM Certified System Administrator - Websphere MQ V5.3 |
|
Back to top |
|
 |
shusneimtahra |
Posted: Wed Mar 28, 2007 7:15 am Post subject: |
|
|
Novice
Joined: 28 Mar 2007 Posts: 15
|
Hi,
Can anyone tell me where to place this rule file?
Thanks. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Mar 28, 2007 7:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shusneimtahra wrote: |
Can anyone tell me where to place this rule file?
|
Anywhere runmqdlq can see it......
Seriously, depends how you're scheduling runmqdlq to run. The rules file is just an input file, piped in as you normally would. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Thu Mar 29, 2007 1:35 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
You could also use MQMON (SupportPac MO71), which is able, to translate the DLQ-Header. _________________ Regards
Hubert |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 29, 2007 5:46 am Post subject: |
|
|
Guest
|
You can also browse the dead-letter queue with amqsbcg or the MQ Explorer. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Thu Mar 29, 2007 5:54 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
bruce2359 wrote: |
You can also browse the dead-letter queue with amqsbcg or the MQ Explorer. |
But with amqsbcg it is hard to read!
And for MQ Explorer you need a local MQ server installation, MQMON only requires the MQ client.
Additionally MQMON is also able, to read the DLQ on z/OS (if there is a Client Attachement Feature installed). _________________ Regards
Hubert |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 29, 2007 6:41 am Post subject: |
|
|
Guest
|
Quote: |
And for MQ Explorer you need a local MQ server installation |
Nope. MQ Explorer can execute from a non-server platform.
Your original post asked how to read the dead-letter queue. What do you want to accomplish by reading it? What exactly are you looking for? This may help us posters guide you in a better direction. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Thu Mar 29, 2007 7:32 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
bruce2359 wrote: |
Quote: |
And for MQ Explorer you need a local MQ server installation |
Nope. MQ Explorer can execute from a non-server platform.
Your original post asked how to read the dead-letter queue. What do you want to accomplish by reading it? What exactly are you looking for? This may help us posters guide you in a better direction. |
MQ Explorer for MQ version 5 must have a MQ server installation.
MQ Explorer for MQ version 6 does not need a MQ server installation, but you only get it with a server installation. I was told, that it should be possible, to remove the server afterwards - but this is not supported .
Hopefulls it runs. _________________ Regards
Hubert |
|
Back to top |
|
 |
zpat |
Posted: Thu Mar 29, 2007 8:14 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Downlod the free trial version of WMQ v6 (server). Install it, selecting only the client and MQexplorer.
Nothing to delete and also the MQexplorer does not expire after 90 days (so I believe anyway).
Same applies to the full version - you do not have to install the queue manager (or server) to get MQExplorer to work. Just choose the custom install and select the bits you want.
V6 explorer can adminster V5 queue managers (but not z/OS)
Last edited by zpat on Thu Mar 29, 2007 9:37 am; edited 1 time in total |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 29, 2007 8:43 am Post subject: |
|
|
Guest
|
Quote: |
MQ Explorer for MQ version 5 must have a MQ server installation.
|
Mea culpa for assuming you were asking about MQ V6. |
|
Back to top |
|
 |
|