Author |
Message
|
Augusto |
Posted: Fri Dec 26, 2008 4:24 pm Post subject: deleting messages from Dead letter queue |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
I am getting below error while deleting messages from DLQ
clear ql(DLQ)
"AMQ8148: MQSeries object in use. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Dec 26, 2008 5:03 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Try creating a little file (mydlqhdlr.txt):
wait(no)
action(discard)
It is important that the file finishes with a blank line.
Then run
Code: |
runmqdlq <DLQNAME> <QMGRNAME> < mydlqhdlr.txt |
And read the chapter about the Dead Letter Queue Handler.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Augusto |
Posted: Fri Dec 26, 2008 8:57 pm Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
I want to delete to all messages on DLQ and i am getting above error? |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Dec 27, 2008 11:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Augusto wrote: |
I want to delete to all messages on DLQ and i am getting above error? |
Did you even read the above reply?
Have you noticed that it is the qmgr itself that has a handle on the DLQ and it is needed for normal operations. So use a DLQHandler already!  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 31, 2008 12:36 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Augusto wrote: |
I want to delete to all messages on DLQ and i am getting above error? |
It's amazing how,if you do the same thing in the same set of circumstances, the same thing happens!
You'd get the same thing issuing that command against any open queue. Best thing is to write a little application that destructively reads each message and run it against the queue.
Or use the application IBM have supplied as fjb_saper suggests!!!
If you're going to ignore the advice being given and just keep repeating your question, posting is pointless.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Augusto |
Posted: Wed Dec 31, 2008 7:11 am Post subject: |
|
|
Apprentice
Joined: 08 Dec 2008 Posts: 29
|
I got it and solved my problem sorry to troble you. iam newbie to MQ |
|
Back to top |
|
 |
|