Session.createQueue() may or may not actually create the queue. It's a feature of JMS that's not really needed with ActiveMQ. It would be just as good to create a queue via "new ActiveMQQueue(name)".
ActiveMQ creates queues dynamically, on-demand. Calling createQueue() doesn't really change this operation. In fact, looking inside ActiveMQSession.java, createQueue() simply calls "new ActiveMQQueue(name)" or "new ActiveMQTempQueue(name)". Since AMQ creates queues on use, whether used by a producer or consumer, removing queues is really only a cleanup task that may not even work since the queue may still be in-use. -- View this message in context: http://activemq.2283324.n4.nabble.com/why-consumer-need-to-create-Queue-to-consume-it-tp4690517p4690563.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
