Javier
2006-06-06 21:16:39 UTC
Hi All,
I like to know how is that MQEveryplace can detect a duplicate message on
the Sync Queue.
Actually I have a program (C native API) that do the following:
On a first run:
a) Take a file from the file system and generate a new Message
a.1) Generate a confirmID
a.2) Generate a messageID
b) Puts a message on the Bridge Queue in a Gateway Queue ManagerRemote Sync
Queue. Using the Field MQ_DATA filled with the file contents (any contents
is the same)
The put operation use the ConfirmID and MessageID generated on a)
On a second run:
a) Take a file and generate a new Message (same file that in the first run)
a.1) Generate a confirmID
a.2) Generate a messageID
b) Set the Field MQE_MSG_RESEND to MQE_TRUE
c) Puts a message on the same Queue that first run
I already try:
a) Use the same ConfirmID on the two runs
b) Use the same MessageID
c) Use both MessageID and ConfirmID
But ever I obtain the same result: Duplicated messages. (note that I never
send the ConfirmPut !!!)
So the question is: what must i do in order to let MQeveryplace detect that
this is the SAME message ? is there any way ?
Using a Queue on the Gateway the ConfirmID mechanism work just great, but I
can`t understand how it works on a Bridge Queue...
Any help welcome. Thanks!
I like to know how is that MQEveryplace can detect a duplicate message on
the Sync Queue.
Actually I have a program (C native API) that do the following:
On a first run:
a) Take a file from the file system and generate a new Message
a.1) Generate a confirmID
a.2) Generate a messageID
b) Puts a message on the Bridge Queue in a Gateway Queue ManagerRemote Sync
Queue. Using the Field MQ_DATA filled with the file contents (any contents
is the same)
The put operation use the ConfirmID and MessageID generated on a)
On a second run:
a) Take a file and generate a new Message (same file that in the first run)
a.1) Generate a confirmID
a.2) Generate a messageID
b) Set the Field MQE_MSG_RESEND to MQE_TRUE
c) Puts a message on the same Queue that first run
I already try:
a) Use the same ConfirmID on the two runs
b) Use the same MessageID
c) Use both MessageID and ConfirmID
But ever I obtain the same result: Duplicated messages. (note that I never
send the ConfirmPut !!!)
So the question is: what must i do in order to let MQeveryplace detect that
this is the SAME message ? is there any way ?
Using a Queue on the Gateway the ConfirmID mechanism work just great, but I
can`t understand how it works on a Bridge Queue...
Any help welcome. Thanks!