Cannot use spring.activemq.broker-url from yaml configuration file

I am trying to enter activemq properties from yaml configuration file.

i originally used the properties file, and it worked very well, but with the yaml file, the spring.activemq.broker-url property is apparently ignored by spring-jms and the default broker URL is used (tcp: // localhost: 61616 ), resulting in "Failed to connect to [tcp: // localhost: 61616] after: 10 attempts to continue repeating", of course.

here is my yaml configuration

spring: 
 activemq: 
  broker-url: tcp://someIP:61616
  user: admin
  password: admin
  pooled: true

The yaml file loads because other configuration properties were correctly detected, I don’t know if there is a problem using yaml to configure activemq configuration.

Any help would be greatly appreciated!

+4
source share

Source: https://habr.com/ru/post/1589398/


All Articles