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 <[EMAIL PROTECTED]> wrote: > 2008/5/8 shaf <[EMAIL PROTECTED]>: >> >> 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 >