Posted: Fri Oct 28, 2011 11:20 pm Post subject: MQGET under syncpoint with numerous processes?
Acolyte
Joined: 26 Sep 2010 Posts: 70
Hi there,
This may sound like a stupid question and probably is, but I just want to make 100% sure with the MQ guru's.
I have a single queue and have 4 instances of an application pulling messages off it with MQGET under syncpoint (using MQBACK and MQCMIT etc).
Is is humanly possible that process 1 and process 2 can *somehow* both get message 1 at the same time? I assume this is impossible but just want to make 100% sure. I have read the IBM docs and it says that the message will not be "in view" to the other processes when doing an MQGET under syncpoint...but are there any parameters that need to be set to ensure this? I am assuming this is default behaviour....
Unless you are using MQGET with browse, the message will only be made available to one instance. If rolled back of course it is then available again (with the MQMD.Back count incremented). No special options are needed.
Be careful to understand what happens if you close the queue or disconnect without commiting or backing out the unit of work explicitly.
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