Author |
Message
|
nab054371 |
Posted: Tue May 08, 2007 4:55 am Post subject: Messages do making to dead letter queue |
|
|
Disciple
Joined: 15 Nov 2006 Posts: 173
|
Hi,
I have an application writing to a queue say TESTQ.My TESTQ has run out of queue depth.I am expecting to see message flow to the DEAD LETTER queue,but I dont see 'em there?
thanks |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 08, 2007 4:59 am Post subject: Re: Messages do making to dead letter queue |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
nab054371 wrote: |
I am expecting to see message flow to the DEAD LETTER queue |
Why? If your TESTQ is a local queue, your MQPUT will fail with a "queue full" reason code (2053? It's in the manual). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ashu |
Posted: Tue May 08, 2007 5:03 am Post subject: |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
I'm sure ,
display QMGR in RUNMQSC shows the DEADQ(name of your dead Q) field set...
I that case one of the activity you could perform is check whether the DEADQ is PUT(ENABLED)...
 _________________ Ashu
"It is simple to be Happy but difficult to be Simple" |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 08, 2007 5:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ashu wrote: |
I'm sure ,
display QMGR in RUNMQSC shows the DEADQ(name of your dead Q) field set...
I that case one of the activity you could perform is check whether the DEADQ is PUT(ENABLED)...
 |
It's quite right, but not relevant to the poster's problem. The dead letter queue is only used for undeliverable messages. If the message cannot be accepted for delivery because the queue is full, the put will be declined with a 2053 (I looked it up ).
The scenario I think you're thinking of is where a message has been transmitted to the queue manager, rather than put locally. In this case it's been accepted at the receiving end so if the target queue is full it's undeliverable and then will go to the dead letter queue (if defined). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ashu |
Posted: Tue May 08, 2007 5:19 am Post subject: |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
OOPs
Oh ya, MQ takes the responsibility of the message only if it makes its way to the Local Q on the Sending side first....
got it...thanks
Regards, _________________ Ashu
"It is simple to be Happy but difficult to be Simple" |
|
Back to top |
|
 |
Vitor |
Posted: Tue May 08, 2007 5:20 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ashu wrote: |
Oh ya, MQ takes the responsibility of the message only if it makes its way to the Local Q on the Sending side first....
|
Exactly so. Hence the importance of effective error checking.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|