Posted: Wed Apr 19, 2006 2:47 pm Post subject: Duplication of records using C++ API for MQ
Novice
Joined: 07 Jul 2005 Posts: 12
I am using C++ API of MQ client to connect to a MQ and get records.
I am using the ImqQueue data structure in C++ API and get method with options set to MQGMO_WAIT | MQGMO_FAIL_IF_QUIESCING and time interval of 15s. Some of the records transfered using this program are getting duplicated.
To sort out whether this is a unique case of data problem I tried to resend the records and they went fine without any duplicates.
Can anyone tell me a possible scenario where records from MQ could be duplicated while reading from a program.
If some error happens during the get process can it be a possibility that we get the message but the message doesn't get deleted from the MQ.
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
Two possibilities are;
(1) you were actually browsing the messages instead of doing a destructive get (GMO_BROWSE)
(2) the unit of work was rolled-back (MQBACK) _________________ -wayne
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