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]
# 1
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.
shirish_wagh at 2007-6-29 2:47:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Right, the queue must already exist. What's returned is basically a handle for the queue. Actual creation of queues is an administrative function.
zaneparks at 2007-6-29 2:47:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

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.

rkuzyk at 2007-6-29 2:47:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...