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 » IBM MQ Java / JMS » How to maintain ordering of messages

Post new topic  Reply to topic
 How to maintain ordering of messages « View previous topic :: View next topic » 
Author Message
sguhan
PostPosted: Wed Apr 30, 2003 9:24 am    Post subject: How to maintain ordering of messages Reply with quote

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).
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 30, 2003 9:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Use message grouping.
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Apr 30, 2003 10:00 am    Post subject: Reply with quote

Jedi Knight

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.

http://www-3.ibm.com/software/integration/library/manualsa/manuals/crosslatest.html

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sguhan
PostPosted: Wed Apr 30, 2003 10:40 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2003
Posts: 3

With the JMS API is there a way to set some identifier?
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Apr 30, 2003 11:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I have never done that with JMS. But looking at the documentation I am getting an impression that it is possbile.

JMSXGroupSeq is mapped to MsgSeqNumber

Refer to Chapter 12 of the Using Java Manual.

GOOD LUCK

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How to maintain ordering of messages
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.