|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MsgId/CorrelationId - Urgent |
« View previous topic :: View next topic » |
Author |
Message
|
vsk |
Posted: Tue Jun 24, 2003 9:24 am Post subject: MsgId/CorrelationId - Urgent |
|
|
Novice
Joined: 25 Apr 2003 Posts: 24
|
Hi,
I want a solution to one problem
In my application in MQPUT when I am putting a message ar after putting the message I need to store the MQ MessageId into a table and use that Message Id to compare against the correlation Id that I will be getting in the reply Message.
Question
1) How do I store this MsgId into a Sybase table. What is the datatype that I should be using to store the Message Id.
2)How do I compare the Correlation Id with the MessageId that is stored in my table.
OR
Is there anyother way to do this instead of storing the MsgId in the Sybase table.
Thanks,
VSK |
|
Back to top |
|
 |
clindsey |
Posted: Tue Jun 24, 2003 11:02 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
I am not familiar with Sybase, but you need a binary data type, e.g. one that can house unsigned characters include nulls.
As far comparing the msgid and correlid, that depends on the language you are using. For example, C++ has an overloaded "==" operator in the ImqBinary class. In C, you could do a memcmp. or in java, I think would need to do a compareTo or equals of each byte in the array.
Charlie |
|
Back to top |
|
 |
vsk |
Posted: Tue Jun 24, 2003 1:26 pm Post subject: |
|
|
Novice
Joined: 25 Apr 2003 Posts: 24
|
Question:
Can I know the MsgId that I am sending before or after the MQPUT call that I make.
Following is the current scenario
1) MQBEGIN
2) read record from database
3) Put into Queue
4) MQCOMMIT
In the above steps where will I read the tme MsgId of the Message because once I put into the Remote Queue that message will be gone .So how will I get the Message Id to store in the table. |
|
Back to top |
|
 |
clindsey |
Posted: Tue Jun 24, 2003 2:17 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
When you do the MQPUT, the message descriptor is updated to give you the value of the msgid, so you know it after the put.
Charlie |
|
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
|
|
|
|