Announcement Announcement Module
No announcement yet.
Is it possible to run 2 embeded brokers in same JVM? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it possible to run 2 embeded brokers in same JVM?

    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):
    <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" />
    this code is used in both web applications, one of them is droping message into queue, but another one doesn't recieves anything.

    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)?