activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Siegenthaler" <msiegentha...@inventsoft.ch>
Subject Re: AMQ 5.1 - How to get a list of Queues
Date Wed, 25 Jun 2008 13:44:01 GMT
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
<james.strachan@gmail.com> wrote:
> 2008/5/8 shaf <shaffin.bhanji@gmail.com>:
>>
>> 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
>

Mime
View raw message