AMQP连接从Azure Service Bus到Readyapi
我正在尝试使用AMQP消息传递将其余的呼叫从readyapi切换到我们的应用程序。 ReadyApi有一个具有AMQP步骤的附加组件,但我认为我需要连接服务总线。
我尝试将服务总线用作带有端口的主机名:5671和5672,但这给了我一个错误。有任何iDeeas如何连接这两个? 谢谢!
I am trying to switch the rest calls from ReadyAPI to our application with AMQP messaging. There is an add-on for ReadyAPI that has the AMQP steps but I need a connection to, I presume, the service bus.
I tried using the service bus as the host name with port: 5671 and 5672 but it gives me an error. Any ideeas how would I connect these two?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请按照以下几点解决您的问题。
我认为这是由于内部公司防火墙限制,它阻止了港口5671和5672的所有流量。
,我建议您在VM上设置TCP代理Haproxy。
。
此TCP代理以这种方式配置
特定端口Azure服务终点上的所有传入流量。
您可以使用
connection.sethostname(“”);
更改终点。
connection.sethostname(“”);
进行所有这些流量后,将路由到TCP代理端点,而不是服务总线,因为防火墙阻止了5671端口上的所有流量。
有关此的更多信息,您可以关注官方 Microsoft文档。
Follow the below points to fix your issue.
I think this is due to the internal company firewall restriction which blocks all the traffic on port 5671 and 5672.
So i will recommend you to set your TCP proxy HAProxy on VM.
This TCP proxy configured in such a way that which route
all incoming traffic on a specific port azure service end point.
You can change the end point using
connection.setHostname("");
You should also change your port number from 5671 to 8080 in ClientConstants.
After doing all this traffic will route to TCP proxy endpoint instead of service bus as firewall blocked all traffic on 5671 port.
For More about this you can follow the official Microsoft Documentation.