What is the use of createQueue()
In JMS API the cretaeQueue() method is given for QueueSession.Can I use this method to create a Queue run time?I am getting NoSuchDestination error on using this .So what is this method for and how it should be used? Can anyone guide me?regards,Anjali
[300 byte] By [
Anjali_c] at [2007-9-26 1:47:50]

With the createQueue you are not physically creating a Queue, but a Queue object and associating it with a Queue that already exists. I could be wrong, but I believe that's the explanation.The Queue can be created by an administrator, or you can do it yourself.
Anjali,
most JMS vendors offer some sort of UI to their product to allow you to create the physical queues that you later can lookup and use inside your application. Some also provide an API to their management tools so that you can create queues programmatically. This most certainly will limit your applications portability, but if this is a need you have, then I would suggest that you investigate the providers offerings.
I hope this helps.