|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Error Handling |
« View previous topic :: View next topic » |
Author |
Message
|
los.alamos |
Posted: Fri Aug 02, 2002 3:44 am Post subject: Error Handling |
|
|
Newbie
Joined: 02 Aug 2002 Posts: 1
|
I´m new to MQSeries and a little bit confused about the clean error handling.
My task is to put a message on a queue (put1) and immediateley recieve the reply(get1). According to the errors that might occur, the state of business critical data has to be changed differently. That means:
- I have to figure out clearly, whether the put-call was o.k. and the message "is on the way", because I might make the first request to the remote system only once due to checking the account line of a user and locking a certain amount of money by the request.
I know about the completion and reason codes, but for me it´s not clear, which of them definitely indicate whether the message was sent or not.
The application programming guide says "I should handle all the return codes that could arise from each call". But there are a few !!!
Are there some more general suggestions for dealing with specific groups of errors ?
Is there a list of errors that may be caused by a put-call ? I only know the application programming reference with the reasoncodes in numeric order.
Any help would be appreciated !
Thanks,
Klaus |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Aug 02, 2002 4:43 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
If the completion code of the MQPUT1 is zero, your message was sent.
If the completion code of the MQPUT1 is two, your message was NOT sent.
If the completion code of the MQPUT1 is one, your message was probably sent, but may have been modified slightly. There are 5 returns codes that could come back under a completion code of 1 for the MQPUT1 call as of version 5.2.1 ( 2049, 2104, 2136, 2241, 2242). In this case you may want to add specific logic to check the reason codes to see what you need to do. _________________ Peter Potkay
Keep Calm and MQ On |
|
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
|
|
|
|