从 Spring-Boot app 连接到部署在 JBoss EAP 7.1 上的队列时获取 warning/error

Getting a warning/error when connecting to queue deployed on JBoss EAP 7.1 from Spring-Boot app

我已经在本地计算机上的 JBoss EAP 7.1 服务器 运行 上部署了一个 activemq 队列 (QueueA)。我有一个 Spring-Boot 应用程序,它也在同一台机器上 运行,并且有一个实现 "MessageListener" 的队列监听器。我在 Spring-Boot 应用程序中使用了以下依赖项:

1. <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jms</artifactId>
</dependency>

2.
<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-activemq</artifactId>
</dependency>

3.
<dependency>
            <groupId>org.apache.activemq</groupId>
            <artifactId>activemq-broker</artifactId>
</dependency>

I have created connection factory the following way : 
ActiveMQConnectionFactory connectionFactory =
                new ActiveMQConnectionFactory();

        connectionFactory.setBrokerURL(tcp://localhost:8080);
        connectionFactory.setUserName("Username");
        connectionFactory.setPassword("Password");

Now when I start my Spring-Boot app it gives me the following error initially :
ERROR : Not Connected: [ClusterNode]

and following error repetitively until I stop the app:

ERROR : DefaultMessageListenerContainer: Error : Could not refresh JMS Connection for destination 'QueueA'.Cause: Cannot send, channel has already failed: tcp://127.0.0.1:8080


Can anyone please help in this regard ? or Point me to some documentation which would be helpful

我认为这里的问题是 JBoss EAP 7 嵌入了 ActiveMQ Artemis 代理,但您的依赖项是用于与 ActiveMQ 5.x 一起工作的库(即不同的代理)。查看 "Helloworld JMS" quick-start for EAP 7.1 中的 pom.xml。

明确地说,ActiveMQ Artemis 确实 支持 5.x 客户端,但我认为该功能在 EAP 中默认被禁用。