Here is the code snippet from ActiveMQ HelloWorld Example for creating queue using ActiveMQ
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"); As per ActiveMQ docs
This facility is provided for the rare cases where clients need to dynamically manipulate queue identity
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?
Then it further says
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.
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?