|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Kindly Help me in my problems !!! |
« View previous topic :: View next topic » |
Author |
Message
|
Apurva |
Posted: Fri Feb 15, 2002 10:29 pm Post subject: |
|
|
Newbie
Joined: 14 Feb 2002 Posts: 4 Location: India
|
Hello Everyone !!!
While using the IBM --> VB sample code for putting messages, I need to capture the msgid and store it and while getting the message, the server sends the message with a Correlation id, which I need to match with the msgid that I have to store. Can anyone please explain me the whole process as no manuals or pdf on IBM is able to guide me also how to store the id and capture the same when it is sent by the server to the client.
Kindly do reply ASAP.............
Thanks ,,
APURVA SHAH |
|
Back to top |
|
 |
StefanSievert |
Posted: Tue Feb 19, 2002 2:03 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
In the requesting appl, the messageId is available *after* the successful MQPUT operation. Just keep the MQMessage object.
In the server appl., the messageId is available *after* the successful MQGET operation. The application then must put this messageID into the correlID of the reply message *before* MQPUTing it.
Meanwhile, the requesting application issued an MQGET (most likely with MQGMO_WAIT and a reasonable wait interval) *after* setting the correlID of the reply message object to the messageID of the request message object.
Check out the Code Repository on this site. It contains C/C++ sample programs for request/reply: http://www.mqseries.net/pafiledb203/pafiledb.php?PHPSESSID=a519b25f5c2a75b28b33b223f641d1f1&action=viewfile&fid=12&id=2
You just have to translate to VB.
I might be able to dig out a VB sample tonight when I am at home.
HTH,
Stefan
_________________ Stefan Sievert
IBM Certified * WebSphere MQ |
|
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
|
|
|
|