Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 9616 invoked from network); 25 Jun 2008 13:44:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 13:44:36 -0000 Received: (qmail 33315 invoked by uid 500); 25 Jun 2008 13:44:36 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 33295 invoked by uid 500); 25 Jun 2008 13:44:36 -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 33284 invoked by uid 99); 25 Jun 2008 13:44:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 06:44:36 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.44.155] (HELO yx-out-1718.google.com) (74.125.44.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 13:43:44 +0000 Received: by yx-out-1718.google.com with SMTP id 3so600047yxi.86 for ; Wed, 25 Jun 2008 06:44:02 -0700 (PDT) Received: by 10.142.200.20 with SMTP id x20mr5794046wff.259.1214401441462; Wed, 25 Jun 2008 06:44:01 -0700 (PDT) Received: by 10.150.196.15 with HTTP; Wed, 25 Jun 2008 06:44:01 -0700 (PDT) Message-ID: <28c3c9290806250644n3702b9el15f7bdf5aa4ebcb6@mail.gmail.com> Date: Wed, 25 Jun 2008 15:44:01 +0200 From: "Mario Siegenthaler" To: users@activemq.apache.org Subject: Re: AMQ 5.1 - How to get a list of Queues In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17117156.post@talk.nabble.com> <17126489.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org If you really want to create and list queues you could use the JMX-interface to the broker and call the addQueue method on the Broker-MBean. That does create an empty queue. Mario On Wed, Jun 25, 2008 at 3:20 PM, James Strachan wrote: > 2008/5/8 shaf : >> >> Thanks guys, so when I try to create a Queue using the following: >> >> ActiveMQSession session = this.con.getConnection().createSession(false, >> Session.AUTO_ACKNOWLEDGE); >> // create queue >> Queue request = session.createQueue( name ); >> System.out.println("The queue has been created: " + request.getQueueName() >> ); >> Thread.sleep( 3000 ); >> >> An then I try to list the queues in the previous code snippet, it does not >> show up. When I try using the admin console, I still dont see the queue that >> I created! Is there something wrong or is this a bug?? > > No this is not a bug - please read > http://activemq.apache.org/how-do-i-create-new-destinations.html > > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://open.iona.com >