|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Exception Report Question |
« View previous topic :: View next topic » |
Author |
Message
|
Mr Butcher |
Posted: Tue Jul 18, 2006 1:44 am Post subject: Exception Report Question |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
I did some tests with report option MQRO_EXCEPTION, message is non persistent, messages are transferred via channel with npmspeed fast, targetqueuemanager is MQ 5.3 on Windows CSD 11.
1. when i put disable the target queue the message is put to the DLQ, a report is created (works as expected).
2. when i also put disable the DLQ the message is discarded (because of non persistent and npmspeed fast), but i do not get a report.
3. when using MQRO_EXCEPTION+MQRO_DISCARD_MSG i get the report i miss in test 2 (target queue put disabled and DLQ put disabled).
I checked with the manual and did not find anything that explains why there is no report for test 2. The Application Programmers Reference reads on Page 177:
Quote: |
For nonpersistent messages traveling through fast message channels, the original message is removed from the transmission queue and the exception report generated even if the specified action for the error condition cannot be completed successfully. For example, if
MQRO_DEAD_LETTER_Q is specified, but the original message cannot
be placed on the dead-letter queue because (say) that queue is full, the
exception report message is generated and the original message
discarded. |
So i re-did test 2 with MQRO-EXCEPTION + MQRO-DEAD-LETTER-Q but no difference. No Report generated.
I did not find anything in the Intercommuication Guide that makes this more clear, except that - when you want to enalble "return to sender" one of the MQRO-DEAD-LETTER-Q or MQRO-DISCARD-MSG must be used.
What did i miss? From what is described in the APR should it work or not? _________________ Regards, Butcher |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 18, 2006 3:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Well your message does no hit the destination queue, nor can it hit the DLQ and as it is not persistent it simply gets discarded. But you did not specify the option MQRO_DISCARD_MSG for your report options... So why do you think you should get a report? Set your report options to include message discarded (Allways).
ReportOptions ro = messagedlq | messagediscarded; //xor byte operation
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Jul 18, 2006 7:53 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
Quote: |
So why do you think you should get a report? |
Because it is written in the APR (see my quote above).
And i also understand from the documentation, that MQRO-DISCARD-MSG is not an exception option (give me a report when my message is discarded) but a disposition option (discard my message when an exception has occurred).
Thats what i understand when reading the report options in the APR for MQMD-REPORT. _________________ Regards, Butcher |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 18, 2006 2:41 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
That does change the take on things...
I guess in the case you are portraying the trigger event is the disposition of the message.
Now if the message cannot hit the DLQ the trigger point is not reached and you missed the report?
Can you use the xor and ask for both disposition reports (DLQ and discarded). As the message can only have one of the dispositions you should not get dupplicate reports and I guess that the analysis of the report data would tell you which of the dispositions is applicable to the message you just received the report on. _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|