Author |
Message
|
alexassis |
Posted: Mon Dec 13, 2004 6:26 am Post subject: My program don't receive message with specific CORRELID (2) |
|
|
 Newbie
Joined: 10 Dec 2004 Posts: 6
|
The class was modified as suggested. It repairs that messageid of the sent message and the same correlid of
the message to be chore. The queue will count 5 messages, to put the recouped message was not the one that contains correlid
specified.
Correlid of the return this being initialized with messageid of the
sending message.
--------------------------------------------------------------------------------------
LOG:
-> Before MQPUT:
PUT Msg Id : <null> (MQMI_NONE)
PUT Correl Id :<null> ( MQCI_NONE)
-> After MQPUT
PUT Msg Id :AMQ DES.HIPERCARH«Az
PUT Correl Id:<null>
-> Before MQGET
GET Msg Id A:<null>
GET Msg CorrelId :AMQ DES.HIPERCARH«Az |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Dec 13, 2004 6:49 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I'm not sure that I understand what is going on in this thread. It looks like it is something to do with message and correlation id's. Your sample output seems to show that you put a message and got a message id that ended up being the correlation id for your reply. This may be expected if the program that responds moves the incoming message id to the outgoing correlation id. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 13, 2004 7:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I answered his other thread, in which he seemed confused about the value of the correlation ID he was receiving.
I read it to be "I think my program is not working, because when I look at the correlation ID I got, it does not seem to be the same as the one I asked for".
Of course, MQ will not retrieve a message that doesn't have a matching correlation ID, if you ask it to match the correlation ID.
So I thought he was getting confused by the output he was seeing. And it seems he may still be confused by this.
If he converts the bytes of the message and correlation IDs to hex values, and prints them, then he should see the right and same thing for the outgoing message ID and the incoming correlation ID. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 13, 2004 10:02 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What do you see after your GET? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
alexassis |
Posted: Tue Dec 14, 2004 3:56 am Post subject: |
|
|
 Newbie
Joined: 10 Dec 2004 Posts: 6
|
Hi Jeff,
When I try to get a specific message, it returns me the first message stored in the line, as if correlid and messageid was been inicializado with MQCI_NONE and MQMI_NONE.
Regards,
ALEX |
|
Back to top |
|
 |
alexassis |
Posted: Wed Dec 15, 2004 11:50 am Post subject: |
|
|
 Newbie
Joined: 10 Dec 2004 Posts: 6
|
Exists a problem in the classroom of the MQ Linux bindings, when an attempt to get a message using correlationid is made . This problem is corrected applying the CSD03.
Here it is the text where the problem is described:
71084 - Get matching by correlid does not work for Linux
bindings. Attempting to get a message, by specifying a
correlation ID fails when using the Linux bindings. The
symptom of the failure is that the get operation
succeeds but does not perform the matching and instead
returns the first message found.
Regards,
ALEX |
|
Back to top |
|
 |
|