No – you cannot receive
transactional messages asynchronously.
From the MSDN documentation of
MQReceiveMessage (error codes):
MQ_ERROR_TRANSACTION_USAGE
(0xC00E0050)
One
of the following actions was attempted within the context of a transaction.
·
An attempt was made to open a remote queue for read access.
·
An attempt was made to read a message from a nontransactional queue.
·
An attempt was made to read a message using a
callback function or an OVERLAPPED structure.
(The third reason is equivalent to async
receive).
HTH,
Yoel
From:
Sent: Thursday, March 02, 2006
12:09 PM
To:
Subject: [msmq] Transactional
receive asynchronously
Hi!
Does anybody know if it is possible to
asynchronously receive messages
from a queue using a transaction.