How to send messages to multiple jms (active mq) brokers from the same application?
问题 I've up 2 applications(servers) with embedded active mq instances locally. Now I need to create a client for this servers. I've read the asnswer: https://stackoverflow.com/a/43401330/2674303 and try to repeat this: I registered 2 connection factories: @Bean @Primary public ConnectionFactory bitFinexExchangeJmsConnectionFactory() { return new ActiveMQConnectionFactory("tcp://localhost:61616"); } @Bean public ConnectionFactory hitbtcExchangeJmsConnectionFactory() { return new