将现有 JMS 库与 AMQP 代理 (RabbitMQ) 结合使用

发布于 2024-10-13 18:22:31 字数 162 浏览 10 评论 0原文

我们使用 RabbitMQ 和 Spring-AMQP 作为我们的消息系统。

然而,有许多使用 JMS 的 Java 库,我不想将它们重写为 AMQP。

我未能通过 Google 搜索将使用 AMQP 的 JMS 客户端。

我应该重写库以直接使用 AMQP 吗?

We use RabbitMQ and Spring-AMQP for our messaging system.

However there are many Java libraries that use JMS that I would rather not rewrite to AMQP.

I failed to Google a JMS client that will use AMQP.

Should I just rewrite the library to use AMQP directly?

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

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

发布评论

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

评论(2

你怎么敢 2024-10-20 18:22:31

qpid 也使用 amqp ,有一个 JMS 客户端库。也许这也适用于rabbitmq。

有一些(旧的)指示 "http://www.openamq.org" rel="nofollow">OpenAMQ 库可与rabbitmq配合使用

qpid , which also speaks amqp , has a JMS client library. Perhaps that also works with rabbitmq.

There's some (old) indications the OpenAMQ library works works with rabbitmq

神回复 2024-10-20 18:22:31

根据您实际构建的内容,您可能会发现 Spring Integration 很有用:

http://www .springsource.org/spring-integration

它抽象了端点的概念,使得它们是可插拔的,并且有对 JMS 和 JMS 的内置支持。 AMQP。

构建一个简单的 AMQP <-> 相当简单。 JMS 适配器。

Depending on what you're actually building, you'll probably find that Spring Integration is useful:

http://www.springsource.org/spring-integration

It abstracts the concepts of end points, such that they are pluggable and there is built-in support for JMS & AMQP.

It's fairly trivial to build a simple AMQP <-> JMS adapter.

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