ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Exception Handling

Post new topic  Reply to topic
 Exception Handling « View previous topic :: View next topic » 
Author Message
cronydude
PostPosted: Mon Jun 23, 2003 2:51 am    Post subject: Exception Handling Reply with quote

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
View user's profile Send private message
rwa
PostPosted: Mon Jun 23, 2003 3:24 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Mon Jun 23, 2003 5:57 am    Post subject: Reply with quote

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
View user's profile Send private message
rwa
PostPosted: Mon Jun 23, 2003 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Mon Jun 23, 2003 6:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Quote:
Is this correct?
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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Exception Handling
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.