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 IBM MQ Support » Messages on a queue? First in First out?

Post new topic  Reply to topic
 Messages on a queue? First in First out? « View previous topic :: View next topic » 
Author Message
mrfridaynight
PostPosted: Wed Feb 14, 2007 5:50 am    Post subject: Messages on a queue? First in First out? Reply with quote

Apprentice

Joined: 13 Nov 2006
Posts: 44

Hi Guys,

If I do a normal put and get off a queue - is it always 1st in 1st out?
The reason why I ask this is because i have a application that needs to put messages on a queues in a seqeunce and get them off the queue in a seqeunce - 1st in 1st out. I have no filtering on the queue so is this the case?

Thanks
Back to top
View user's profile Send private message MSN Messenger
zpat
PostPosted: Wed Feb 14, 2007 6:01 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

If they are staying on the same queue and the message delivery sequence is set to FIFO then yes.
Back to top
View user's profile Send private message
Nigelg
PostPosted: Wed Feb 14, 2007 6:02 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Yes, this is the case, if your apps conform to the exact conditions which guarantee msgs are delivered in sequence. You should read the notes in the MQGET and MQPUT sections of the APR.

If you think that your apps will not meet these conditions, you can be absolutely sure that msgs are delivered in the sequence you want by putting msgs in a logical group. Look up Options in MQPMO and MQGMO in the APR to find out how to do this.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 14, 2007 6:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Don't use a queue as a database.

Don't design applications that require affinity between messages.

If you must send a set of messages, and those messages have a logical order, then use logical grouping.
_________________
I am *not* the model of the modern major general.
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 IBM MQ Support » Messages on a queue? First in First out?
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.