I'm reading ActiveMQ documentation & can't figure out is it possible to run 2 embeded brokers within same JVM (actually I'm runnning 2 webaps under one Tomcat instance).
I'm running embedded broker as it is written on activeMQ docs - by using spring configuration file as follows (only broker part):
this code is used in both web applications, one of them is droping message into queue, but another one doesn't recieves anything.
<amq:broker useJmx="true" persistent="false" brokerName="broker1">
<amq:managementContext connectorPort="51248" />
<amq:networkConnector name="default-nc" uri="multicast://default" />
<amq:transportConnector uri="tcp://localhost:0" />
Is this configuration is Ok, and I just need to setup appropriate parameters or I need to use one standalone broker which will hold queue and will be used to connect to by clients (using jmsConnectorFactory)?