|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Messages on a queue? First in First out? |
« View previous topic :: View next topic » |
Author |
Message
|
mrfridaynight |
Posted: Wed Feb 14, 2007 5:50 am Post subject: Messages on a queue? First in First out? |
|
|
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 |
|
 |
zpat |
Posted: Wed Feb 14, 2007 6:01 am Post subject: |
|
|
 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 |
|
 |
Nigelg |
Posted: Wed Feb 14, 2007 6:02 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Feb 14, 2007 6:03 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|