Posted: Wed Apr 30, 2003 9:24 am Post subject: How to maintain ordering of messages
Newbie
Joined: 29 Apr 2003 Posts: 3
I have several instances of an application which are pulling messages off an MQ queue. There could be messages for several users and each user can have many messages. The order of messages for a particular user has to be processed in order by the instances. Is there something that I can set in the message header which will let the instances know that there are other messages for the same user? How to maintain the ordering of the messages? Instances of the application grab a message from the MQ Queue Q1, process and put to another queue Q2. When they write to another queue (Q2) they have to put messages in the same order as they were in the original queue (Q1).
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
There are quite a few fields with which you can achieve what you are trying to.
May be fileds like
MsgSeqNumber
UserId etc. You should look at MQMD fileds in the Application Programming Reference manual.
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