Author |
Message
|
swann |
Posted: Thu May 10, 2012 9:26 am Post subject: Dead Letter Handler |
|
|
Acolyte
Joined: 21 Jun 2011 Posts: 50
|
Hi All,
Created two QM aa and bb . Configured to send message from aa to bb.But on the remote queue i have given a wrong QM as bbb .So the messages ended up in remote QM DLQ ie bb.
I am trying to handle this dead letter queue by writing a small script ,something like this.
inputq(BB.DLQ) inputq(bb)
REASON(MQRC_UNKNOWN_REMOTE_Q_MGR) action(fwd) fwdq(bb.local) fwdqm(bb)
But When i run runmqdlq BB.DLQ bb < DLQfile , I run with the following errors :-
Daed-letter unable to put messages .
Could you please correct me to handle this dead letter queue.
Thanks. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu May 10, 2012 9:35 am Post subject: Re: Dead Letter Handler |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
swann wrote: |
Hi All,
Created two QM aa and bb . Configured to send message from aa to bb.But on the remote queue i have given a wrong QM as bbb .So the messages ended up in remote QM DLQ ie bb.
I am trying to handle this dead letter queue by writing a small script ,something like this.
inputq(BB.DLQ) Inputq(bb)
REASON(MQRC_UNKNOWN_REMOTE_Q_MGR) action(fwd) fwdq(bb.local) fwdqm(bb)
But When i run runmqdlq BB.DLQ bb < DLQfile , I run with the following errors :-
Daed-letter unable to put messages .
Could you please correct me to handle this dead letter queue.
Thanks. |
inputqm(bb)? _________________ 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 |
|
 |
swann |
Posted: Thu May 10, 2012 9:48 am Post subject: |
|
|
Acolyte
Joined: 21 Jun 2011 Posts: 50
|
inputq(BB.DLQ) inputqm(bb)
REASON(MQRC_UNKNOWN_REMOTE_Q_MGR) action(fwd) fwdq(bb.local) fwdqm(bb) |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 10, 2012 10:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
and can you amqsput to bb.local? |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu May 10, 2012 10:01 am Post subject: Re: Dead Letter Handler |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
swann wrote: |
But When i run runmqdlq BB.DLQ bb < DLQfile , I run with the following errors :-
Daed-letter unable to put messages .
|
Is this the only error you see? No ReasonCode? With dead-letter misspelled?
Please copy/paste the exact error you see. _________________ 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 |
|
 |
swann |
Posted: Thu May 10, 2012 10:03 am Post subject: |
|
|
Acolyte
Joined: 21 Jun 2011 Posts: 50
|
Yes
C:\Documents and Settings>amqsput bb.local bb
Sample AMQSPUT0 start
target queue is bb.local
ssssssssss
Sample AMQSPUT0 end |
|
Back to top |
|
 |
swann |
Posted: Thu May 10, 2012 10:05 am Post subject: |
|
|
Acolyte
Joined: 21 Jun 2011 Posts: 50
|
C:\Documents and Settings>runmqdlq BB.DLQ bb < C:\dd.txt
5/10/2012 13:20:58 AMQ8708: Dead-letter queue handler started to process INPUTQ(BB.DLQ).
5/10/2012 13:20:58 AMQ8722: Dead-letter queue handler unable to put message: Rule 2 Reason 2087.
5/10/2012 13:20:58 AMQ8722: Dead-letter queue handler unable to put message: Rule 2 Reason 2087. |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 10, 2012 10:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
swann wrote: |
C:\Documents and Settings>runmqdlq BB.DLQ bb < C:\dd.txt
5/10/2012 13:20:58 AMQ8708: Dead-letter queue handler started to process INPUTQ(BB.DLQ).
5/10/2012 13:20:58 AMQ8722: Dead-letter queue handler unable to put message: Rule 2 Reason 2087.
5/10/2012 13:20:58 AMQ8722: Dead-letter queue handler unable to put message: Rule 2 Reason 2087. |
What your rule says is to forward the message to queue BB.LOCAL on queue manager BB. The dead letter handler tries to do exactly what you've said and find a route to a queue manager called "BB".
To make this work you either need FWDQM('') or a queue manager alias that resolves the name "BB" to the local queue manager. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu May 10, 2012 10:23 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
bb and BB are different names. _________________ 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 |
|
 |
Vitor |
Posted: Thu May 10, 2012 10:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
bb and BB are different names. |
Ooo... we need a "good catch" emoticon!
It's not inside runmqsc so the name doesn't fold......  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
swann |
Posted: Thu May 10, 2012 10:32 am Post subject: |
|
|
Acolyte
Joined: 21 Jun 2011 Posts: 50
|
Hi Vitor,
Thanks for the reply .I tried this
inputq(BB.DLQ) inputqm(bb)
REASON(MQRC_UNKNOWN_REMOTE_Q_MGR) action(fwd) fwdq(bb.local) fwdqm('') , But it still comes up with the same error. |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 10, 2012 10:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
swann wrote: |
inputq(BB.DLQ) inputqm(bb)
REASON(MQRC_UNKNOWN_REMOTE_Q_MGR) action(fwd) fwdq(bb.local) fwdqm('') , But it still comes up with the same error. |
Then you need to raise a PMR because this says that works.
You could try taking the FWDQM clause out completely first & seeing what happens. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
swann |
Posted: Thu May 10, 2012 12:33 pm Post subject: |
|
|
Acolyte
Joined: 21 Jun 2011 Posts: 50
|
Hi Vitor,
Removed the fwdqm clause but still it shows the same error. Just want to make it clear to known about the configurations.
QM aa
def qremote(aa.remote) remoteqname(bb.local) remoteqmanagername(bbb) transmit queue(bbb)
senders channel(aa.bb) trasnmitq(bbb)
QM bb
qlocal(bb.local)
recevers channel(aa.bb)
Due to the misstype in the definition of remote queue the message ended up in DLQ at QM bb. |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 10, 2012 12:51 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Be sure (as my most worthy associate highlights) that the queue manager is called bb not BB. It makes a difference & is why WMQ objects are typically folded to upper case.
So if the rule
Code: |
REASON(MQRC_UNKNOWN_REMOTE_Q_MGR) action(fwd) fwdq(bb.local) |
is yielding a 2087 then there's either a problem with the code or your topology.
For the record, which version of WMQ is this & which platform? Shouldn't make a difference really but worth knowing. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
swann |
Posted: Thu May 10, 2012 1:01 pm Post subject: |
|
|
Acolyte
Joined: 21 Jun 2011 Posts: 50
|
C:\Documents and Settings>dspmqver
Name: WebSphere MQ
Version: 7.0.1.0 |
|
Back to top |
|
 |
|