如何让 Java 应用程序订阅 NServiceBus 发布者?

发布于 2024-08-28 01:52:30 字数 93 浏览 2 评论 0原文

我询问了 Google 并搜索了 NServiceBus 网站和论坛,但我似乎找不到任何关于如何编写 Java 应用程序来订阅发布者的说明性指南。有人有这样的链接或经验吗?

I've asked Google and searched through the NServiceBus website and forums, but I can't seem to find any prescriptive guidance on how I would write a Java application to subscribe to a publisher. Does anyone have any such link or experience?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

[旋木] 2024-09-04 01:52:30

这种情况并没有得到很好的开箱即用支持 - 您需要自己进行一些基础设施改造。一般来说,查看代理是如何构建的,并在组合中添加一些网关样式的 HTTP 通信,或者使用标准 .NET Web 服务公开它。

This scenario is not well supported out of the box - you'll need to do some infrastructure munging yourself. In general, look at how the proxy is built, and add some gateway-style HTTP communication in the mix, or expose that with a standard .NET webservice.

深海不蓝 2024-09-04 01:52:30

您可以通过 MSMQ 手动将订阅消息发送到发布者,然后发布者会将任何相关消息发送到您的 java 订阅者输入队列。但您还需要手动接收这些内容。

我想您随后也会致力于使用 MSMQ 作为整个总线的传输层。

You could manually send the subscribe message to the publisher over MSMQ, the publisher would then send any relevant messages to your java subscribers input queue. But you would need to receive those manually also.

I guess you're then committed to using MSMQ as your transport layer for your entire bus also.

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