Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个只能由特定程序读取的队列。但是,我发现其他一些程序正在从该队列中“窃取”消息。有没有办法确定哪个程序可以做到这一点?我什么都想不出来。
对于给定的服务帐户,在队列上设置 read-message 和 peek-message 权限,然后确保只有使用者在该服务帐户下运行。
更新
在 Windows server 2008 或 Windows 7 或更高版本上,MSMQ 有一个专用的系统事件日志,用于记录 MSMQ 子系统所做的一切。可以通过这个查看哪个用户帐户正在访问队列。