Spring-boot应用程序与Apache Artemis集群连接

问题描述 投票:0回答:1

Spring-Boot可以在类路径上获得Artemis时自动配置连接工厂。但是我们如何将spring-boot应用程序配置为原生Artemis集群(多个节点)

spring-boot spring-jms activemq-artemis
1个回答
1
投票

如果在broker.xml中使用消息负载平衡的TRICT值。然后,您需要创建与您正在使用的节点一样多的连接。在Spring中,您可以使用MessageListenerContainer来监听使用者。 Here是一个连接到集群的示例应用程序(具有2个节点)

© www.soinside.com 2019 - 2024. All rights reserved.