简体   繁体   English

如何使用Spring JMS创建共享订阅

[英]How to create a shared subscription using spring JMS

JMS 2.0 specification introduced the concept of shared durable subscriptions. JMS 2.0规范引入了共享持久订阅的概念。 I have a use case where I have to create subscriptions programmatically upon server start up. 我有一个用例,必须在服务器启动时以编程方式创建订阅。 We have clustered JBoss servers. 我们已经集群了JBoss服务器。 Hence each JBoss will have similar configurations and every JBoss will have applications which will create durable subscribers(messaging provider is WMQ). 因此,每个JBoss将具有相似的配置,每个JBoss将具有可创建持久订阅者的应用程序(消息提供者为WMQ)。 Since durable subscriptions have to have a unique name, I thought of using shared subscriptions. 由于持久订阅必须具有唯一的名称,因此我考虑使用共享订阅。 Now the problem is that spring's 4.0.6.RELEASE has support for new features in JMS 2.0, however I did not find a way to create shared durable subscriptions via spring. 现在的问题是spring的4.0.6.RELEASE支持JMS 2.0中的新功能,但是我找不到通过spring创建共享的持久订阅的方法。 We use spring's DefaultMessageListenerContainer to create the listeners. 我们使用spring的DefaultMessageListenerContainer创建监听器。 Am I doing it right? 我做对了吗? I appreciate any suggestions that you might have. 感谢您提出的任何建议。

That feature will be available as from Spring 4.1.RC2 that will be released today. 该功能将从春季发布的Spring 4.1.RC2开始提供。 A new destination-type will be available called sharedDurableTopic , check the current build of the doc for more details. 将提供一个新的destination-type称为sharedDurableTopic ,检查文档的当前版本以获取更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用@MessageDriven创建JMS 2共享订阅 - How to create a JMS 2 shared subscription with @MessageDriven 是否可以使用spring jms停止和重新启动持久订阅? - Is it possible to stop and restart a durable subscription using spring jms? 如何使用Spring JMS支持在运行时创建JMS队列? - how to create JMS queues in run-time using Spring JMS support? 您如何使用 Spring JMS 收听 JMS 主题 - How do you listen to a JMS topic using Spring JMS 使用activeMQ + Spring在主题中进行持久订阅:javax.jms.InvalidClientIDException:客户端:已连接 - durable subscription in topics using activeMQ + Spring: javax.jms.InvalidClientIDException: Client: already connected JMS 2.0-MQ 9-主题共享订阅不起作用 - JMS 2.0 - MQ 9 - Topic Shared subscription doesn't work 如何使用JMS API创建/删除目标 - How to Create\Remove destination using JMS API 如何创建单独的 JMS 消费者和发布者 spring 引导应用程序? - How to create separate JMS consumer and publisher spring boot application? 如何使用Spring Integration TCP Inbound Gateway创建stomp订阅? - How can I create stomp subscription using spring integration TCP Inbound Gateway? 如何使用 Spring JMS 使用来自 websphere 应用程序服务器的 JMS 消息 - How to consume JMS messages from the websphere application server using Spring JMS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM