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):
applicationContext.xml:
this code is used in both web applications, one of them is droping message into queue, but another one doesn't recieves anything.Code:<amq:broker useJmx="true" persistent="false" brokerName="broker1"> <amq:managementContext> <amq:managementContext connectorPort="51248" /> </amq:managementContext> <amq:networkConnectors> <amq:networkConnector name="default-nc" uri="multicast://default" /> </amq:networkConnectors> <amq:transportConnectors> <amq:transportConnector uri="tcp://localhost:0" /> </amq:transportConnectors> </amq:broker>
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)?


Reply With Quote