title: activemq failover : primary node recover consumers?
body: <p>I am new to <code>activemq</code>. I have configured two servers of activemq and using them in <code>failover</code> transport. They are working fine. I mean if one activemq goes down another pick up the queues. My problem is when main server comes up it do not restore the queues. Is there any such configuration or protocol that can manage it if main server is up then consumers should come back to to it.</p>
  
  <p>Currently my configuration is :</p>
  
  <pre><code>    &lt;transportConnectors&gt;
                      &lt;transportConnector name="openwire" uri="tcp://0.0.0.0:61616" updateClusterClients="true" rebalanceClusterClients="true"/&gt;
      &lt;/transportConnectors&gt;
  &lt;networkConnectors&gt;
                  &lt;networkConnector uri="static:(tcp://192.168.0.122:61616)"
                  networkTTL="3"
                  prefetchSize="1"
                  decreaseNetworkConsumerPriority="true" /&gt;
  &lt;/networkConnectors&gt;
  </code></pre>
  
  <p>and my connection uri is : </p>
  
  <pre><code>failover:(tcp://${ipaddress.master}:61616,tcp://${ipaddress.backup}:61616)?randomize=false
  </code></pre>
  
  <p>Also i want to send mail in case of failover occurs so that i could know if activemq is down.</p>