MSMQ - message queuing has not been installed on this computer

前端 未结 2 440
春和景丽
春和景丽 2020-12-30 06:11

I have written a sample application to write to a public and private queues that are on dev server. I don\'t have the message queue installed on my local machine.

I

相关标签:
2条回答
  • 2020-12-30 06:47

    Refactor out the MSMQ logic to a service and call the service from your code, passing the message. That way you only have to install MSMQ on the server.

    0 讨论(0)
  • 2020-12-30 06:53

    You need to install MSMQ on ALL machines which want to participate in the transmission and reception of messages. That includes sending machines such as your local machine in this instance.

    The reason for this is because of the store-and-forward messaging pattern that MSMQ uses.

    http://en.wikipedia.org/wiki/Store_and_forward

    What is actually happening when you "send" a message to your server is:

    1. The local queue manager writes the message to a local temporary queue.
    2. The local queue manager connects to the remote queue manager.
    3. The message is transmitted.
    4. The remote queue manager writes the message to the remote queue.
    0 讨论(0)
提交回复
热议问题