I've read several examples about jms support in spring boot.
and usually sender, receiver and active-mq(actually it can be any other jms compatible message broker) locates within the same application.
I know that I can use stand alone active mq and use properties:
spring.activemq.broker-url=tcp://192.168.1.210:9876
spring.activemq.user=admin
spring.activemq.password=secret
But I want to have 2 applications:
1- sender (connects to jms from receiver embedded and sends messages there)
2-receiver (up application and embedded activemq)
Is it posiible?
Just add a
BrokerService
bean to your application:and
and add this to your pom