Posted: Sat May 17, 2003 8:31 pm Post subject: retun code
Centurion
Joined: 25 Jun 2002 Posts: 144
does jms returns a return code in the normal program execution ? ... or in other words ..how to capture the return code, in jms, after performing successful message put operation ?
fyi.. am not talking about the exception condition ..program is taking a normal execution path.
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
Well, I believe that if the compcode of any mq operation is nonzero, then JMS will throw an exception. However, if the compcode is 0 (indicating success) then the reason code should always be 0 as well, which is why there is no separate method for getting the reason code from an operation in JMS.
What exactly do you need the reason code on successful operations for? _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
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