Hi,

the createQueue method is implemented in this way:
public Queue createQueue(String queueName) throws JMSException {
         checkClosed();
         return new ActiveMQQueue(queueName);
     }

And so, a new Object is created....Going deeper in the code I have seen no
mechanism about retrieving already existing Queue based on its name. Perhaps
am I wrong?

Best regards,

Raffaele


jlim wrote:
> 
> Hi,
> 
> If you just want to get the handle of a queue object based on its name I 
> think you can use  the Session.createQueue(String queueName)  method.
> 
> Regards,
> jonas
> 
> *
> *
> 
> 
> 
> Raffaele wrote:
>> Hi all,
>>
>> I'm looking for a method to retrieve a specific queue based on its name,
>> that is a method that returns a Queue object.
>>
>> In Oracle JMS implementation there is such a method, here it is:
>> http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b12023/oracle/jms/AQjmsSession.html#getQueue(java.lang.String,%20java.lang.String)
>>
>> In ActiveMQ does it exist analogous method?
>>
>> Best regards and thanks,
>>
>> Raffaele
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-find-a-queue--tf3872540s2354.html#a10983740
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to