ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » MsgId/CorrelationId - Urgent

Post new topic  Reply to topic
 MsgId/CorrelationId - Urgent « View previous topic :: View next topic » 
Author Message
vsk
PostPosted: Tue Jun 24, 2003 9:24 am    Post subject: MsgId/CorrelationId - Urgent Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Tue Jun 24, 2003 11:02 am    Post subject: Reply with quote

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
View user's profile Send private message
vsk
PostPosted: Tue Jun 24, 2003 1:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Tue Jun 24, 2003 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MsgId/CorrelationId - Urgent
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.