I am using spring-boot-starter-activemq.
When I am trying to listen using multiple listeners each for a different topic with clientId then only ONE listener is able to connect to a topic at random remaining doesn't connect saying already connected with given clientId.
Below are properties set
- spring.activemq.broker-url =tcp://localhost:61616?jms.clientID=test
- spring.jms.listener.acknowledge-mode=auto
spring.jms.listener.concurrency=1
spring.jms.pub-sub-domain=true
========================================================================
Error Message
Could not refresh JMS Connection for destination 'TOPIC_1' - retrying using FixedBackOff{interval=5000, currentAttempts=5, maxAttempts=unlimited}. Cause: Broker: pdt-topics - Client: test already connected from tcp://localhost:61616*