Author |
Message
|
MQnewbee |
Posted: Wed Nov 02, 2005 4:52 pm Post subject: To Move message from dead letter queue |
|
|
Newbie
Joined: 17 Oct 2005 Posts: 7 Location: USA
|
The following command is executed
ALTER QLOCAL(QUEUEA) BOQNAME(SYSTEM.DEAD.LETTER.QUEUE)
Is this command to physically remove message from QueueA to dead letter queue?
I execute the command to remove the message back from dead letter queue to QUEUEA,
ALTER QLOCAL(SYSTEM.DEAD.LETTER.QUEUE) BOQNAME(QUEUEA)
How come the messages still stay in the dead letter queue?
Thanks! |
|
Back to top |
|
 |
wschutz |
Posted: Wed Nov 02, 2005 4:57 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
No, the BOQNAME is really only for informative purposes on the quue. MQ will not do anything with that, its up to an application to use that information to put poisoned messages on the named queue (as Broker does)
Look at the MA01 supportpac ("q" program) to move messages between queues. _________________ -wayne |
|
Back to top |
|
 |
MQnewbee |
Posted: Wed Nov 02, 2005 6:02 pm Post subject: Move messages from dead letter to local queue |
|
|
Newbie
Joined: 17 Oct 2005 Posts: 7 Location: USA
|
Thanks.
when I executed the command
ALTER QLOCAL(QUEUEA) BOQNAME(SYSTEM.DEAD.LETTER.QUEUE)
the messages in queue QUEUEA exactly got moved to the dead letter queue. And now I want to move the messages from the dead letter queue to QUEUEA to reprocess it. How can I accompolish that? Any suggestions |
|
Back to top |
|
 |
wschutz |
Posted: Wed Nov 02, 2005 6:07 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
when I executed the command
ALTER QLOCAL(QUEUEA) BOQNAME(SYSTEM.DEAD.LETTER.QUEUE)
the messages in queue QUEUEA exactly got moved to the dead letter queue |
No, issuing the command DOES NOT CAUSE MESSAGES TO BE MOVED. Are you using the MQ Broker?
Do a search for "runmqdlq" in the info center:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp _________________ -wayne |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Nov 02, 2005 8:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
wschutz wrote: |
Quote: |
when I executed the command
ALTER QLOCAL(QUEUEA) BOQNAME(SYSTEM.DEAD.LETTER.QUEUE)
the messages in queue QUEUEA exactly got moved to the dead letter queue |
No, issuing the command DOES NOT CAUSE MESSAGES TO BE MOVED. Are you using the MQ Broker?
Do a search for "runmqdlq" in the info center:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp |
I suspect he is using WAS and specified a bothresh.
You cannot play around with messages like this and should NEVER specify the DLQ as a BOQ. The reason is that WAS does not put any header on msgs written to the BOQ. Thus you would not be able to use runmqdlq on those msgs.
WAS however will backout the msgs to the DLQ with a DLQ header IF NO BOQ IS DEFINED.
Enjoy  |
|
Back to top |
|
 |
MQnewbee |
Posted: Wed Nov 02, 2005 10:08 pm Post subject: Remove messages from dead letter queue |
|
|
Newbie
Joined: 17 Oct 2005 Posts: 7 Location: USA
|
Thanks for info.
The environment is WebSphere MQ server in Solaris.
The curdepth in dead letter queue increased after executing the command. Messages indeed were moved to the dead letter queue.
Is there anyway to move back the messages from the dead letter queue back to the local queue?
What command to use to remove a particular message from dead letter queue?
Thanks. |
|
Back to top |
|
 |
EddieA |
Posted: Wed Nov 02, 2005 11:05 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
The curdepth in dead letter queue increased after executing the command |
Then something else caused that. As Wayne pointed out:
Quote: |
issuing the command DOES NOT CAUSE MESSAGES TO BE MOVED |
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
fschofer |
Posted: Thu Nov 03, 2005 2:43 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
|
Back to top |
|
 |
|