You could configure the broker to create those queues on startup. That way you don't need any separate for-loop and the queues will already be visible via the admin console. See:
http://activemq.apache.org/configure-startup-destinations.html On Wed, Jan 2, 2013 at 3:02 AM, jainmanglesh <jainmangl...@rediffmail.com>wrote: > Hi > Thank you very much for your reply. > > my requirement is like: > I want to create a list of activemq (which I am trying to create using for > loop as in code). These queues will be used by third party to send message > and on the other end used by third party to consume the messages on queue. > > Third party sending messages ----> q1, q2,q3... q10 ---> Third party > consuming messages. > > A random queue will be selected by both third party to put and take the > messages from queue. > > I cannot have a code to produce the message and put into queue (sorry about > adding that in the code above). > However as you said, If I dont have producer it does not create the queue > (as I cannot see on admin console). > > The only thing is I want to create Queues, that's all. and third party will > be using them to put and take messages from its ends. > > Thank you. > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-to-setup-multiple-queues-tp3092113p4661197.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta