AMQP连接从Azure Service Bus到Readyapi

发布于 2025-02-06 04:37:32 字数 310 浏览 2 评论 0原文

我正在尝试使用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.
AMQP Connection

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

在你怀里撒娇 2025-02-13 04:37:32

请按照以下几点解决您的问题。

  • 我认为这是由于内部公司防火墙限制,它阻止了港口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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文