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 » IBM MQ API Support » Reading from MQ with timeout (C++)

Post new topic  Reply to topic Goto page Previous  1, 2
 Reading from MQ with timeout (C++) « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Mon Feb 05, 2007 12:54 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vbajwa wrote:
Anyway, I thought a return of false, and completionCode() of MQCC_TIMED_OUT might have been more reasonable than MQCC_FAIL


I agree it's a little odd, but message not found is legitimately an error. It's not a problem if the queue is empty because you've (correctly) read to the bottom of it, but is if you're waiting for a reply based on correl id for instance. The API can't tell what you're trying to do in the logic so you have to decide if you're going to treat the error as an error (so to speak).

My 2 cents. Other viewpoints may be equally valid.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ API Support » Reading from MQ with timeout (C++)
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.