英文:
What is the alternative for Apache activemq-broker jar which has support for Jakarta as in JDK 17 and Spring 6?
问题
我有一个基于Spring 5的应用程序,它使用Apache activemq客户端和broker库。我们现在正在迁移到要求使用JDK 17规定的Jakarta命名空间的Spring 6。但是,activemq-broker jar中没有Jakarta支持。5.18.1版本仅支持activemq-client的Jakarta。是否有支持Jakarta的broker库的替代方案?或者是否可以继续在Spring 6中使用apache activemq作为客户端和broker?
我认为唯一可能的选择是寻找一个完整的支持Jakarta的替代apache activemq库,其中包括客户端和broker的支持。
英文:
I have an application that is based on Spring 5 and it uses Apache activemq client and broker libraries. We are now migrating to Spring 6 which requires Jakarta namespaces as specified by JDK 17. But, there is no jakarta support in activemq-broker jar. The 5.18.1 release only supports jakarta for the activemq-client. Is there any alternative for the broker library that supports Jakarta? Or is it possible to continue using apache activemq for client and broker with Spring 6?
The only option that I think is possible is find an alternative for the entire apache activemq library that has support for jakarta in both client and broker
答案1
得分: 2
activemq-client-jakarta.jar 可用于连接 Jakarta-based 应用程序与运行 ActiveMQ 5.18.1 的远程 broker,完全没有导致 Jakarta-based ActiveMQ 客户端与 javax.jms-based ActiveMQ broker 不兼容的问题。
只有在你的应用程序或单元测试中使用了嵌入式 broker 时,才需要在 Spring 6 中使用 Jakarta-based broker。
Apache ActiveMQ 正计划支持 Jakarta 的 5.19.x 系列。截至此帖发布时,只需要进行一些小的清理工作,然后 PR 将被合并。
如果需要早期版本,可以从此 PR 构建一个 SNAPSHOT 版本,Jakarta-based ActiveMQ broker 可以正常工作。
参考链接:https://github.com/apache/activemq/pull/996
英文:
The activemq-client-jakarta.jar can be used to connect Jakarta-based applications to a remote broker running ActiveMQ 5.18.1 just fine. There is nothing over-the-wire that causes incompatibility between Jakarta-based ActiveMQ clients and javax.jms-based ActiveMQ broker.
The only time you need a Jakarta-based broker with Spring 6 is if you used embedded broker in your application or unit test.
Apache ActiveMQ is planning the 5.19.x series to support Jakarta. As of this post, there are only a few minor clean-ups needed before the PR will be merged.
If you need an early release, you can build a SNAPSHOT build from this PR and the Jakarta-based ActiveMQ broker works.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论