Could not start 2 embedded active-mq on different ports within different spring boot applications
I have 2 spring-boot applications. Each application has embedded active mq broker. I need to have 2 applications working on the same PC in parallel but it doesn't work now. First application always starts successfully: 2018-02-02 11:48:20.095 INFO 7660 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@53045c6c: startup date [Fri Feb 02 11:48:20 MSK 2018]; root of context hierarchy 2018-02-02 11:48:20.923 INFO 7660 --- [ JMX connector] o.a.a.broker.jmx.ManagementContext : JMX consoles can connect to