title: How queue is create in ActiveMQ?
body: <p>Here is the code snippet from  <a href="http://activemq.apache.org/hello-world" rel="noreferrer">ActiveMQ HelloWorld Example</a>  for creating queue using ActiveMQ</p>
  
  <pre><code>ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost");
  
     // Create a Connection
     Connection connection = connectionFactory.createConnection();
     connection.start();
  
     // Create a Session
     Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
  
     // Create the destination (Topic or Queue)
     Destination destination = session.createQueue("TEST.FOO");
  </code></pre>
  
  <p>As per <a href="http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQSession.html#createQueue%28java.lang.String%29" rel="noreferrer">ActiveMQ docs</a></p>
  
  <blockquote>
    <p>This facility is provided for the rare cases where clients need to
    dynamically manipulate queue identity</p>
  </blockquote>
  
  <p>It looks like developer should not create queue with createQueue. If yes, how should a developer should create a queue? should he created by ui or some other means instead of doing it programattically?</p>
  
  <p>Then it further says</p>
  
  <blockquote>
    <p>this method is not for creating the physical queue. The physical
    creation of queues is an administrative task and is not to be
    initiated by the JMS API.</p>
  </blockquote>
  
  <p>I did not get what does above statement mean? As per my understanding, developer should cteate queue manually.Th either thru web ui or command prompt.
    createQueue method will just return the object associated with queue created manually?</p>