I have two java projects. Both of these projects use embedded ActiveMQ using Spring framework.
How do I create a common broker for both of these projects?
If Spring Boot is an option I would create an independant application and use ActiveMQ messages to communicate with both "projects".
Go Microservices.
Another alternative might be to just have a third project consuming and publishing to the same ActiveMQ instance. I don't see any issue there. Actually a Message Bus is an excellent way of decoupling and communicating different projects or applications.