Author |
Message
|
kailashbawane |
Posted: Thu May 07, 2009 11:52 am Post subject: Dead letter queue |
|
|
 Acolyte
Joined: 13 Jun 2007 Posts: 51 Location: Pune,INDIA
|
Hi all,
I am confused on dead letter queue understanding.
If the message not delevered then it comes into dead letter queue, Butif i delete the dead letter queue then where will be my message stay, How can i pull/see the message.
can anyone help me out for this.
Thanks _________________ ITO- MQ ISE.
" Slow n steady always win the race. " |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 07, 2009 12:00 pm Post subject: Re: Dead letter queue |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kailashbawane wrote: |
Butif i delete the dead letter queue then where will be my message stay |
So don't delete the queue!
If what you mean is "where will my message go if it's undeliverable and there's no dead letter queue", the answer is it won't leave the transmit queue it's sitting on and the channel that services that queue will stop.
Unless the message is non persistent in which case it will disapear in a puff of data.
kailashbawane wrote: |
How can i pull/see the message. |
Same as you would any other message. All the usual methods will work, and most of the usual tools will decode the DLH for you. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kailashbawane |
Posted: Thu May 07, 2009 12:28 pm Post subject: |
|
|
 Acolyte
Joined: 13 Jun 2007 Posts: 51 Location: Pune,INDIA
|
What happenes if i delete the Dead letter queue? _________________ ITO- MQ ISE.
" Slow n steady always win the race. " |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 07, 2009 12:43 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Messages that otherwise would go to the DLQ don't.
In the case of messages coming over MQI channels, the messages stay on the remote XMITQ.
In the case of messages originating in applications connected to the qmgr with the missing DLQ, they get an CC of 3 and a non-zero RC, indicating that the PUT has failed and the message is not accepted by MQ. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu May 07, 2009 1:24 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
If the message not delevered... |
The DeadLetterQueue is a queue named in the queue manager object. Mostly, it is used for messages that have arrived from network-connected qmgrs, and that it (the qmgr) cannot deliver to the queue named in the transmission queue header.
Common reasons why a message cannot be delivered to the destination queue: destination queue doesn't exist, queue is put-inhibited, message is too big for queue. If this attempt fails, the next attempt will be to put the message into the DLQ. If the message cannot be delivere to the DLQ (for the same reasons above), the channel stops; and the message remains in the transmission queue.
As noted previously, if the channel is NPMSPEED(FAST) and the message is non-persistent, you have directed the qmgr to discard the message.
DLQs are mostly used in distributed queuing. _________________ 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 |
|
 |
exerk |
Posted: Fri May 08, 2009 12:01 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Also, if you have failed triggered applications, i.e. in cases where the queue manager would place MQFB_APPL_CANNOT_BE_STARTED messages, or undeliverable COA/COD messages, lack of a DLQ may well cause you problems. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Fri May 08, 2009 2:05 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
also, when the local mca is not able to send a message over the channel, e.g. because its length is bigger then maxmsglen of the channel, it is put to the DLQ too. one of the rare situations where a local process uses the local DLQ ...... _________________ Regards, Butcher |
|
Back to top |
|
 |
sumit |
Posted: Fri May 08, 2009 7:37 am Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
kailashbawane wrote: |
What happenes if i delete the Dead letter queue? |
But, why do you want to delete dlq? Is there a project requirement (which I guess not) or you just want to understand the concept? _________________ Regards
Sumit |
|
Back to top |
|
 |
|