Author |
Message
|
irony |
Posted: Tue Jan 17, 2006 7:20 am Post subject: Dead Letter Queue |
|
|
Apprentice
Joined: 18 Nov 2005 Posts: 35 Location: US
|
Hello,
I need to make all messages hitting DLQ 'persistent', and then investigate the messages.
One way of doing would be to move the messages to another queue making the messages persistent, and then putting them back to DLQ so that the DLQH can do its job.
Is this feasible ? does any one have the code for this ready ?
any help would be appreciated.
thanks, |
|
Back to top |
|
 |
wschutz |
Posted: Tue Jan 17, 2006 7:38 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
If you're putting the messages to a second queue, why not just have the DLQ handler process that second queue? I think thats cleaner that trying to put the message back to the original DLQ. _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 17, 2006 7:52 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
And if you're going to the trouble to move the messages in the first place, you might as well put in a small bit of filtering logic to put important messages in one queue, and less important messages in another. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Jan 17, 2006 7:55 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
and if you're going to tell us about your environment we could maybe answer the question about a existing tool to perform this kind of message-move-and-persistence-change. _________________ Regards, Butcher |
|
Back to top |
|
 |
irony |
Posted: Tue Jan 17, 2006 8:05 am Post subject: reg: DLQ |
|
|
Apprentice
Joined: 18 Nov 2005 Posts: 35 Location: US
|
Hi Butcher,
I am running MQ on Solaris.
thanks, |
|
Back to top |
|
 |
wschutz |
Posted: Tue Jan 17, 2006 8:21 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
The "q" program (ma01) should do it:
Code: |
q -ap -I SYSTEM.DEAD.LETTER.QUEUE -o MY.DLQ
|
_________________ -wayne |
|
Back to top |
|
 |
Cliff |
Posted: Tue Jan 17, 2006 8:35 am Post subject: |
|
|
Centurion
Joined: 27 Jun 2001 Posts: 145 Location: Wiltshire
|
Do you really need to change the persistence of the messages? By specifying non-persistent messages, the application architect has accepted that under certain circumstances WMQ will throw the data away. If you make the messages persistent then they will certainly survive a queue manager restart, but if you need to reinput them to the application then presumably you will have to reinstate the original persistence. Are you sure this is what you want?
Just a thought ...
Cheers -
Cliff |
|
Back to top |
|
 |
irony |
Posted: Tue Jan 17, 2006 8:52 am Post subject: reg: DLQ |
|
|
Apprentice
Joined: 18 Nov 2005 Posts: 35 Location: US
|
hi cliff,
Yes that is exactly what i need to to.
hi wschutz,
thanks. i think thats what i need.
to sum up, i need to write a script that runs the Q program, once a message hits the DLQ. Then i run the DLQH to process 'my.dlq'.
Am i missing anything here,
thanks,
irony |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 17, 2006 9:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You could use triggering on the DLQ. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
irony |
Posted: Tue Jan 17, 2006 1:13 pm Post subject: reg DLQ |
|
|
Apprentice
Joined: 18 Nov 2005 Posts: 35 Location: US
|
Thanks everybody.
I was able to get my job done.
Thanks for all the inputs.
irony |
|
Back to top |
|
 |
|