I am working on a project in which I have several military files inside tomcat 7 that should communicate with one integrated activeMQ broker (5.5.1) inside the same Tomcat.
I am wondering what was the best practice to manage this and how to start and stop the broker properly.
In fact, I am trying to use the global JNDI entry in server.xml
, and in every war my activemq connection is searched. The first connection to the broker implicitly starts it. But with this method, I encounter various problems, for example, already existing or locked in the data warehouse.
Should I use the extra war that BrokerFactory uses to run the broker explicitly? In this case, how to make sure that this war is carried out first in Tomcat? And how can I stop my broker and where?
Thanks for the help.
source share