Message Transactions

So far, all the messages and the message queues have been non-transacted. You can create transacted message queues that offer the following advantages:

  • Messages are guaranteed single delivery. Messages will not be duplicated.

  • Messages will be placed in the queue in the order in which they were sent.

While transacted message queues are more reliable, they do require more storage space and processing. In Windows CE transactions are limited to a single message. You must decide when creating a message queue whether it will be transactional or not. To do this you should add a PROPID_Q_TRANSACTION property when creating the message queue, using MQCreateQueue. This property's data should contain the constant MQ_TRANSACTIONAL to specify ...

Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.