简体   繁体   English

在Windows Server 2008中创建传出队列

[英]Create outgoing queue in windows server 2008

This is rather a stupid question. 这是一个愚蠢的问题。 But I couldn't find a good post regarding this.I want to create a queue in Outgoing queue in MSMQ. 但是我找不到关于此的好帖子。我想在MSMQ的传出队列中创建一个队列。 I have a task to get all the Outgoing queues in the machine and clear the messages if it matches to a criteria. 我的任务是获取计算机中的所有传出队列,并在符合条件时清除消息。

Can anybody give an idea how to create an Outgoing queue in Windows server 2008 machine. 任何人都可以提出一个想法如何在Windows Server 2008计算机中创建传出队列。

You don't "create" an outgoing queue. 您不会“创建”传出队列。

When you send a message to a queue the MSMQ sub-system first writes the message to a local, temporary, outgoing queue before transmitting the message to the destination queue. 当您将消息发送到队列时,MSMQ子系统首先将消息写入本地临时传出队列,然后再将消息传输到目标队列。 The lifespan of the temporary outgoing queue is controlled by the MSMQ sub-system and not the developer. 临时传出队列的寿命由MSMQ子系统而不是开发人员控制。

This is because MSMQ uses a store and forward model to transmit messages around. 这是因为MSMQ使用存储转发模型来传递消息。

John Breakwell talks about this here . 约翰·布雷克威尔(John Breakwell) 在这里谈到了这一点

However, you can address the outgoing queues in the same way you would address the remote queue which you are sending to, but setting a flag called MQ_ADMIN_ACCESS . 但是,您可以使用与要发送到的远程队列相同的方式来寻址传出队列,但是设置一个名为MQ_ADMIN_ACCESS的标志。

This technique is described here . 此处介绍此技术。

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

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