如何设置MSMQ服务器,以便可以通过Internet访问它 [英] How to setup MSMQ server so that it can be accessed over the Internet

查看:222
本文介绍了如何设置MSMQ服务器,以便可以通过Internet访问它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Windows 2008 R2服务器上具有MSMQ,具有以下防火墙设置: 1)在允许程序通过Windows防火墙进行通信"中选中了消息队列 2)启用TCP端口:2103、2105、1801

We have MSMQ on a Windows 2008 R2 server, with the followings Firewall settings: 1) Message Queuing is checked in 'Allow programs to communicate through Windows Firewall' 2) Enable TCP port: 2103, 2105, 1801

但是,当c#应用程序(使用FormatName:DIRECT = TCP:xxx.xxx.xxx.xxx \ Private $ \ q1)尝试接收专用队列消息时,它遇到以下错误:

But when a c# application (using FormatName:DIRECT=TCP:xxx.xxx.xxx.xxx\Private$\q1) attempts to receive the private queue message, it encountered the following error:

System.Messaging.MessageQueueException:远程计算机不可用. 在System.Messaging.MessageQueue.MQCacheableInfo.get_ReadHandle()

System.Messaging.MessageQueueException: Remote computer is not available. at System.Messaging.MessageQueue.MQCacheableInfo.get_ReadHandle()

上述设置有什么不对吗?请帮忙.........

Is something amiss from the above setup? Please help.........

谢谢, 本

推荐答案

首先,对于启用了Internet的msmq队列,您的队列地址不正确.格式应为

Firstly, your queue address is not correct for an internet enabled msmq queue. It should be of the format

FormatName:DIRECT=http://myQueueServerURL/Private$\q1

您还需要在服务器上正确配置msmq以允许传入呼叫到端口80(对​​于https为443).

You also need to properly configure msmq on the server to allow incoming calls to port 80 (or 443 for https).

或者,您可以查看位于msmq上但要小心的 NServiceBus网关 Internet上的http通信到另一个网关的信息.

Alternatively, you could look at the NServiceBus Gateway, which sits on msmq but takes care of http communication across the internet to another Gateway.

您还可以考虑使用基于Internet的队列,例如

You could also consider using internet-based queuing, for example, Azure service bus.

RE:评论从互联网上的远程队列接收

您想要做的事是不可能使用MSMQ进行直接整理的.

What you want to do is straight-up impossible with MSMQ.

但是,您可以在本地托管队列,然后让发件人通过Internet发送给您.

You can however host the queue locally and then have senders send to you over the internet.

这篇关于如何设置MSMQ服务器,以便可以通过Internet访问它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆