title: ActiveMQ Network Brokers
body: <p>I am trying to create an ActiveMQ Network which will be consisted of 2 Brokers. I have done then configuration as described in the related guide (http://activemq.apache.org/networks-of-brokers.html) </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://activemq.org/config/1.0"&gt;
  
    &lt;broker brokerName="receiver" persistent="false" useJmx="false"&gt;  
      &lt;networkConnectors&gt;
        &lt;networkConnector uri="static:(tcp://host2:61616)"/&gt;
      &lt;/networkConnectors&gt;
  
      &lt;persistenceAdapter&gt;
        &lt;memoryPersistenceAdapter/&gt;
      &lt;/persistenceAdapter&gt;
  
     &lt;transportConnectors&gt;
        &lt;transportConnector uri="tcp://host1:61616"/&gt;
      &lt;/transportConnectors&gt;
    &lt;/broker&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>In the XML configuration above I am assuming that one of the network brokers is running in host1 and the other in host2. The broker running at host2 will have the opposite values. The JMS fails to start and it does not produce any exceptions in the log files, the only message that appears is </p>
  
  <pre><code>INFO  | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@3df78040: startup date [Tue Nov 22 20:54:53 CET 2011]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
  </code></pre>
  
  <p>Did anyone ever managed to setup a network of two or more ActiveMQ brokers?</p>