Re: AMQ 5.1 - How to get a list of Queues

2008-10-21 Thread JuliusR
Hi, How to convert these to C#.. thank you. shaf wrote: Hello, I am trying to get a list of existing Queues with the following code: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory( server ); ActiveMQConnection amqcon =

Re: AMQ 5.1 - How to get a list of Queues

2008-09-18 Thread kpalania
Take a look at this thread for a potential solution: http://www.nabble.com/%28Solved%29-Discovering-queues-programmatically-and-dequeuing-messages-off-of-them-tt19538405.html kpalania wrote: James.Strachan wrote: It does take a little while for some destinations to show up as they are

Re: AMQ 5.1 - How to get a list of Queues

2008-08-12 Thread kpalania
I can't seem to find the DestinationSource class - http://activemq.apache.org/maven/activemq-core/apidocs/ Has this been deprecated? jlim wrote: Hi Shaf, Just tested this on 5.1.0 and seems to work fine on my test. I tested this using startup destinations

Re: AMQ 5.1 - How to get a list of Queues

2008-08-12 Thread James Strachan
2008/8/12 kpalania [EMAIL PROTECTED]: I can't seem to find the DestinationSource class - http://activemq.apache.org/maven/activemq-core/apidocs/ Has this been deprecated? No its just the javadoc hasn't been redeployed in a while -- James --- http://macstrac.blogspot.com/ Open Source

Re: AMQ 5.1 - How to get a list of Queues

2008-08-12 Thread James Strachan
2008/6/25 shaf [EMAIL PROTECTED]: Gents, I am really having a hard time trying to get a list of queues programmatically (Java). I have seen the DestinationSource ( connection.getDestinationSource() ) working on my local laptop but when deployed onto the server environment, it returns a null

Re: AMQ 5.1 - How to get a list of Queues

2008-06-25 Thread shaf
Does anyone know whether this has been fixed? If so, how can I patch my existing server with the fix (I dont have any build libraries to re-build the source)? It is critical for me to have the ability to browse for queues via the Java API's Thanks, shaf. ttmdev wrote: FYI - the

Re: AMQ 5.1 - How to get a list of Queues

2008-06-25 Thread James Strachan
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 );

Re: AMQ 5.1 - How to get a list of Queues

2008-06-25 Thread Mario Siegenthaler
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

Re: AMQ 5.1 - How to get a list of Queues

2008-06-25 Thread shaf
Gents, I am really having a hard time trying to get a list of queues programmatically (Java). I have seen the DestinationSource ( connection.getDestinationSource() ) working on my local laptop but when deployed onto the server environment, it returns a null for some reason and I know there are

Re: AMQ 5.1 - How to get a list of Queues

2008-05-08 Thread Jonas Lim
Hi Shaf, Just tested this on 5.1.0 and seems to work fine on my test. I tested this using startup destinations (http://activemq.apache.org/configure-startup-destinations.html) and also creating one via jmx. Can you look in jconsole (or any jmx console) to see if the queues are actually

Re: AMQ 5.1 - How to get a list of Queues

2008-05-08 Thread James Strachan
It does take a little while for some destinations to show up as they are typically loaded asynchronously on the JMS client - does sleeping for a second or so help? 2008/5/8 shaf [EMAIL PROTECTED]: Hello, I am trying to get a list of existing Queues with the following code:

Re: AMQ 5.1 - How to get a list of Queues

2008-05-08 Thread James Strachan
BTW you can listen to destinations being added/removed by calling the setDestinationListener method on the DestinationSource 2008/5/8 shaf [EMAIL PROTECTED]: Hello, I am trying to get a list of existing Queues with the following code: ActiveMQConnectionFactory connectionFactory

Re: AMQ 5.1 - How to get a list of Queues

2008-05-08 Thread 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

Re: AMQ 5.1 - How to get a list of Queues

2008-05-08 Thread James Strachan
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 );

Re: AMQ 5.1 - How to get a list of Queues

2008-05-08 Thread ttmdev
FYI - the Destination link @ the top of http://activemq.apache.org/activemq-510-release.html is broken. Joe James.Strachan wrote: BTW you can listen to destinations being added/removed by calling the setDestinationListener method on the DestinationSource 2008/5/8 shaf [EMAIL

AMQ 5.1 - How to get a list of Queues

2008-05-07 Thread shaf
Hello, I am trying to get a list of existing Queues with the following code: ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory( server ); ActiveMQConnection amqcon = connectionFactory.createConnection(); SetActiveMQQueue amqs =