private MessageConsumer establishConsumer(String broker, ActiveMQDestination consumerQueue)
     throws Exception {
   BrokerItem item = brokers.get(broker);
   Connection c = item.createConnection();
   c.start();
   Session s = c.createSession(false, Session.AUTO_ACKNOWLEDGE);
   return s.createConsumer(consumerQueue);
 }
  private ProducerThreadTester createProducerTester(
      String brokerName, javax.jms.Destination destination) throws Exception {
    BrokerItem brokerItem = brokers.get(brokerName);

    Connection conn = brokerItem.createConnection();
    conn.start();
    Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
    ProducerThreadTester rc = new ProducerThreadTester(sess, destination);
    rc.setPersistent(persistentDelivery);
    return rc;
  }