title: ActiveMQ connect to existing queue at an address/port
body: <p>I'm supposed to send messages to an ActiveMQ queue named "IngestGenericJSONQueue" at address 10.7.1.10 at port 61616. I can create an ActiveMQConnectionFactory object, but then how do I look up an existing queue? So far, I've only managed to find the session.createQueue() function, but I'm not sure if this is used to create a connection to an existing queue, or only works to create a brand new queue. How can I connect to an existing activemq queue by name?</p>
  
  <pre><code>ConnectionFactory cFactory = new ActiveMQConnectionFactory("tcp://10.7.1.10:61616");
  Connection connection = cFactory.createConnection();
  connection.start();
  Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
  
  Destination queue = session.createQueue("IngestGenericJSONQueue");
  
  System.out.println("queue connected");
  
  MessageProducer producer = session.createProducer(queue);
  TextMessage m = session.createTextMessage();
  m.setText(jsonStix.toString());
  
  producer.send(m);
  
  System.out.println("done");
  </code></pre>