The information in this article applies to:
SUMMARYWhen messages are sent from the same machine, all of the messages associated with a given transaction are grouped together when read; and that group of messages arrives in the order that the messages are committed. The following pseudo code scenario shows the ordering of the messages:
This results in the following ordering of messages when read from the
queue:
However, this ordering may be different in some cases, as described below.
MORE INFORMATION
The above message ordering is correct as long as all the messages are sent
from the same machine.
Microsoft Message Queue Server guarantees that all messages from A are
ordered and all messages from B are ordered in the queue. But messages
from A and B could be interleaved in the queue. For example, the queue
could look like this:
Microsoft Message Queue Server guarantees the following:
A message will be put into a queue, whenever it reaches the target queue manager. MSMQ does not wait for all the messages sent in the same transaction to reach the queue manager, before putting them all in the queue. To determine when all messages written in a transaction have been read, an application has to tag all the messages sent in the same transaction, and define whenever the last message is sent/received. REFERENCESMSMQ SDK Online help Additional query words:
Keywords : MQGen |
Last Reviewed: August 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |