Author |
Message
|
cronydude |
Posted: Mon Jun 23, 2003 2:51 am Post subject: Exception Handling |
|
|
 Voyager
Joined: 11 Nov 2001 Posts: 85 Location: US
|
Hi gurus,
Say application A has found some error while processing a message from an input queue. This error message is put into some error queue for further processing by application B.
Now my question is how can i pass the error message along with the actual message to the application B? Is there any way where the application A can add custom error message to the message header before putting it to error queue? I don't want to change the actual message data. _________________ Regs,
crony
IBM Certified Specialist - MQSeries |
|
Back to top |
|
 |
rwa |
Posted: Mon Jun 23, 2003 3:24 am Post subject: |
|
|
Voyager
Joined: 22 Jan 2002 Posts: 76 Location: Duesseldorf/Germany
|
It is possible to keep the original messagedata by using headerfield like "ApplIdentityData" for your error data. This field is not used by WSMQ. Additional field can be found in the header description of the programmers handbook. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 23, 2003 5:57 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
In addition, you could use an MQRFH (MQSeries Rules and Formatting Header) to store your error message. |
|
Back to top |
|
 |
rwa |
Posted: Mon Jun 23, 2003 6:04 am Post subject: |
|
|
Voyager
Joined: 22 Jan 2002 Posts: 76 Location: Duesseldorf/Germany
|
As far as I am aware the MQRFH is stored in the message data section and not in the header section of a message. If an application does not ignore MQRFH the message will be read with MQRFH.
Is this correct? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 23, 2003 6:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I think so.
But he's going to have to modify his error handling application (his application B) in order to understand and process the error data no matter where he puts it - in the ApplIdentityData field, in an MQRFH, in a differently formated part of the message body, in a separate message with the same correlation ID, etc. AND he's going to have to modify application A to populate the error data.
So where he puts it doesn't add any additional work. |
|
Back to top |
|
 |
|