Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 58121 invoked from network); 6 Jun 2007 07:35:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 07:35:10 -0000 Received: (qmail 2493 invoked by uid 500); 6 Jun 2007 07:35:13 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 2469 invoked by uid 500); 6 Jun 2007 07:35:13 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 2460 invoked by uid 99); 6 Jun 2007 07:35:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 00:35:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 00:35:09 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Hvq2a-0007p4-JN for users@activemq.apache.org; Wed, 06 Jun 2007 00:34:48 -0700 Message-ID: <10983740.post@talk.nabble.com> Date: Wed, 6 Jun 2007 00:34:48 -0700 (PDT) From: Raffaele To: users@activemq.apache.org Subject: Re: how find a queue? In-Reply-To: <46665C63.4080703@exist.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: r.gambelli@prismasw.it References: <10972130.post@talk.nabble.com> <46665C63.4080703@exist.com> X-Virus-Checked: Checked by ClamAV on apache.org 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.