I'm trying to send messages using the JmsTemplate of Spring boot. I configure everything using the autoconfiguration through properties. These are the properties I set :
- spring.activemq.broker-url
- spring.activemq.user
- spring.activemq.password
I have been able to get this working as desired when I configure the broker-url to tcp://localhost:61616, but whenever I change it to amqp://localhost:5672, I get the error : Failed to connect to [amqp://localhost:5672] after: 10 attempt(s) continuing to retry.
For a project I'm working on, I should be using AMQP.
Any ideas? Thanks in advance!