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.
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