|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Correlation Id |
« View previous topic :: View next topic » |
Author |
Message
|
asinus |
Posted: Tue Aug 10, 2004 6:48 am Post subject: Correlation Id |
|
|
Newbie
Joined: 10 Aug 2004 Posts: 2
|
Hi,
I am new to MQ series.
I have requirement that one transaction will put the messages in the queue and some other transaction will GET the message from the queue and process it.
To map the requests and there replys, I need Correlation Id to be stored in DB2 tables.
After MQPUT, I need to store Correlation Id. But when I am moving it my local variable, it is always showing blanks.
Please suggest what I should do and where I am going wrong.
Also please tell me the difference between MSGID and CORREL_ID. |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Aug 10, 2004 6:59 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
How are you moving the id's? You need to use memcpy's instead of strcpy's because they may have 0's in them. Have you looked at them to see if they are actually filled in? You can use the amqsbcg program to browse the messages.
The message id and correlation id can be used for whatever you want. There are discussions in the application programming guide and reference about potential uses. The biggest use is probably to send a request over with a specific message id. The server program fulfills the request and moves the message id into the correlation id for the reply. |
|
Back to top |
|
 |
asinus |
Posted: Tue Aug 10, 2004 7:56 am Post subject: correlation id |
|
|
Newbie
Joined: 10 Aug 2004 Posts: 2
|
Hi,
thanks for reply
I tried displaying the mq copybook correlation id itself.. it is also showing blanks.
In Options for MQPUT, I tried putting NEW_CORREL_ID but it gave me 2046 - Options error.
I am doing CORREL_ID = NONE before MQPUT. Is it the mistake I am doing. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|