title: ActiveMQ and randomize
body: <p>Let's say I have the following ActiveMQ connection string:</p>
  
  <p>failover:(tcp://broker1:61616,tcp://broker2:61616)?randomize=true</p>
  
  <p>I am sending in like a few thousands requests to the brokers from a Java producer which has this configuration.</p>
  
  <p>Sometimes I noticed that all messages end up going to just 1 broker with the other not receiving a single message.</p>
  
  <p>Is this normal behavior?</p>
  
  <p>Out of 10 tests, I made I may have noticed this behavior a couple of times. And at other times both the brokers received the message.</p>
  
  <p>How randomize=true works?</p>
  
  <p>The only explanation I found on <a href="http://activemq.apache.org/failover-transport-reference.html" rel="nofollow">http://activemq.apache.org/failover-transport-reference.html</a> is: "use a random algorithm to choose the the URI to use for reconnect from the list provided" </p>