简体   繁体   English

MSMQ - 在同一个队列上使用远程读取和远程发送

[英]MSMQ - Using remote read and remote send on the same queue

If using MSMQ 3.0, or 4.0:如果使用 MSMQ 3.0 或 4.0:

I fully understand that the following is not a common, or "correct" way to use a queue, but the point is solving a specific issue immediately.我完全理解以下不是使用队列的常见或“正确”方式,但重点是立即解决特定问题。

Is it possible to perform a read from a remote queue and a write to the same remote queue in a same transaction?是否可以在同一个事务中执行从远程队列的读取和对同一个远程队列的写入? The application performing this being the sole writer, but not the only reader.执行此操作的应用程序是唯一的作者,但不是唯一的读者。 Given that the version of MSMQ is used that supports remote transactional reads.鉴于使用支持远程事务读取的 MSMQ 版本。 Are there any issues with this way of using the queue?这种使用队列的方式有什么问题吗?

Have you tried peek?你试过偷看吗? This way you can read the queue without having to write back.这样您就可以读取队列而无需回写。

http://msdn.microsoft.com/en-us/library/829zyck7.aspx http://msdn.microsoft.com/en-us/library/829zyck7.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM