Author |
Message
|
Doctor |
Posted: Fri Dec 10, 2004 11:12 am Post subject: Writing to the Dead Letter Queue using .NET Classes |
|
|
Newbie
Joined: 10 Dec 2004 Posts: 4
|
I want to be able to put a message on the dead letter queue but I have not been able to figure out how to build the MQDLH header using the .NET classes for MQ. Can anyone provide some help or a coding example? _________________ Bob Hughes |
|
Back to top |
|
 |
csmith28 |
Posted: Fri Dec 10, 2004 11:22 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Actually Bob, the MQManager is the only system entity that should be allowed to PUT Messages on the SYSTEM.DEAD.LETTER.QUEUE and the MQDLQ is used to manage messages one they get there.
What is it exactly that you are trying to accomplish? _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
Doctor |
Posted: Fri Dec 10, 2004 11:45 am Post subject: |
|
|
Newbie
Joined: 10 Dec 2004 Posts: 4
|
I am working with our MQ administrator to test some rules that are set up in the dead letter queue handler and am trying to test them. There may be a better way to handle this. We do not want to put the rules in production and get unexpected results. _________________ Bob Hughes |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Dec 10, 2004 11:49 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
What rules are you trying to reproduce? If its a Q full error, fill a Q, if its a 2085 error, send a message to a bogus q name, etc. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Doctor |
Posted: Fri Dec 10, 2004 11:56 am Post subject: |
|
|
Newbie
Joined: 10 Dec 2004 Posts: 4
|
We have set up a rule to discard messages coming to the DLQ with a destination queue of 'NO.REPLY' I get a 2085 when I try to open this non existent queue so I am not sure how to simulate it. Below is an example of the DLH for one of these messages we are seeing in production.
Structure Identifier : DLH
Version : 1
Reason : 2085
Dest Queue Name : NO.REPLY
Dest QManager Name : CR8516P
Encoding : 546
CodedCharSetID : 437
Format Name : MQSTR
Type of Put application : 6
Put Application Name : amqcrsta_nd
Put Date : 20041127
Put Time : 01210236
Message Text :
BBATCH-ACTMN00010000N _________________ Bob Hughes |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Dec 10, 2004 11:58 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
QM1 does not have QueueA.
Connect to QM2, send a message to QueueA on QM1, and the message will go to the DLQ went it arrives on QM1, with a 2085. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Doctor |
Posted: Fri Dec 10, 2004 12:11 pm Post subject: |
|
|
Newbie
Joined: 10 Dec 2004 Posts: 4
|
Peter,
Thanks. I will give you suggestion a try. _________________ Bob Hughes |
|
Back to top |
|
 |
csmith28 |
Posted: Fri Dec 10, 2004 12:24 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Thanks Peter,...
I was engaged in a problem.
One of my Prod MQManager Servers Crashed due to a CPU failure. Of course the title of the problem ticket is "MQSeries Failing in Production."
I guess I should count my blessings. At least I can identify this problem. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
|