Re: A question about the queue.

2008-07-07 Thread Jonas Lim
Hi, Destinations in activemq are created dynamically so my guess here is unless we're creating a durable queue i don't think we need to persist it. I've not really checked but I believe the Jmx addQueue operation creates a non-durable queue by default. http://activemq.apache.org/how-do-i

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 cr

Re: Cannot synchronously receive a message when a MessageListener is set

2008-01-17 Thread Jonas Lim
Hi Jean, A MessageListener should only be set if you are using an asynchronous consumer, you will need to comment out "subscriber.setMessageListener(ml);" in your code if you're going to be using a synchronous consumer (ie. consumer.receive) which looks to be the case in your sample code. afa

Re: Removing a queue

2007-12-04 Thread Jonas Lim
Hi, You may want to check out some of the unit tests for jmx for examples on obtaining references to activemq mbeans http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/jmx/ Regards, Jonas taubler wrote: Hi, I'm looking for a way to programmat

Re: Messagelistner up automatically after a restart of the broker ?

2007-08-27 Thread Jonas Lim
Hi, You may want to look at using failover to connect to the broker http://activemq.apache.org/failover-transport-reference.html Regards, Jonas Gokulal wrote: Hi All, I am using a Message Listener to listen to the destination. Can I make the listner up automatically after a restart of t

Re: message expiration and 5.0.0 snap shot version

2007-08-22 Thread Jonas Lim
active mq's 5.0 snapshot which you have mentioned "message cursors for persistent messages" can it be found online on active web site ? How do we get to know,the code details , data structures used etc ? -Original Message----- From: Jonas Lim [mailto:[EMAIL PROTECTED] Sent: Tue

Re: message expiration and 5.0.0 snap shot version

2007-08-21 Thread Jonas Lim
hi Suchitha Koneru (sukoneru) wrote: Hello Active MQ users/developers , Our application is currently using Actiive MQ 4.1.1 version. We have an embedded broker in Tomcat 5.5 , without persistence , durable subscribers and Topic publishers , with a time to live of 5 minu

Re: Is it possble to configure destination policies programatically

2007-08-21 Thread Jonas Lim
Hi Paul, Yes. You can use the setDestinationPolicy(PolicyMap) of the BrokerService object. You can see some examples on programmatically configuration destination policies here: http://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/policy/ R

Re: Defining queue in activemq.xml

2007-06-21 Thread Jonas Lim
Hi Tom, Here's the link on startup destinations http://activemq.apache.org/configure-startup-destinations.html Regards, Jonas Tom Samplonius wrote: How do you define a queue in activemq.xml? I looked at the XSD and the best that I could come up with is: But this causes a null

Re: How to receive messages concurrently from a queue?

2007-06-20 Thread Jonas Lim
Hi Naresh, I added a bit of documentation on the default values here http://cwiki.apache.org/confluence/display/ACTIVEMQ/What+is+the+prefetch+limit+for Regards, Jonas Naresh Bhatia wrote: Jonas, that did the trick. Thank you. BTW, are the default values documented somewhere? I could only fin

Re: How to receive messages concurrently from a queue?

2007-06-20 Thread Jonas Lim
Hi Can you try setting your prefetch limit to a lower value (ie. 10) ? http://activemq.apache.org/what-is-the-prefetch-limit-for.html Regards, Jonas Naresh Bhatia wrote: I have a very simple Java program that creates 10 MessageListeners to receive JMS messages concurrently from a queue. The M

Re: how find a queue?

2007-06-06 Thread Jonas Lim
Hi Raffaele, Just out of curiosity , what would you be doing with the Queue object? If you already know the name of an existing queue then you can just use Session.createQueue (or do a jndi lookup) to get the queue object and use it to create a |MessageConsumer| or a |MessageProducer| to r

Re: how find a queue?

2007-06-06 Thread Jonas Lim
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 ret

Re: Exception when starting activemq 4.1.1

2007-05-31 Thread Jonas Lim
Hi, Try disabling mulitcast discovery in the activemq.xml : Regards, Jonas Eric Nygma wrote: Hi, I have downloaded Apache ActiveMQ 4.1.1 on windows.After following the setup instructions. I executed the apache-activemq-4.1.1/bin/activemq.bat script : I got the followin

Re: configuring mysql persistant adapter

2007-05-26 Thread Jonas Lim
Hi, I wonder if it's an issue with mysql driver/server compatibility. Have you tried using other versions of the mysql connector? Regards, Jonas Regards, Jonas Vinod_mit wrote: Hi friends iam trying to connect mysql with acitvemq here is my code and here

Re: How do I remove ActiveMQ.Advisory.Producer.Queue.xxxx

2007-05-21 Thread Jonas Lim
Hi, You can disable advisory support in your broker config file : > Regards, Jonas sparky2708 wrote: My ActiveMQ clients create TEMPORARY queues and I have been looking through the active queues recently and I noticed a number of advisory queues are sticking around that refer to the t

Re: Write to Topic when one is not created

2007-05-20 Thread Jonas Lim
Hi, I believe what you're seeing are advisory topics which are automatically created by default by activemq to send advisory messages to monitor the behavior of the system (ie. starting of connections, creation of destinations, etc). http://activemq.apache.org/advisory-message.html Btw, you

Re: Creating simple producer and consumer

2007-05-03 Thread Jonas Lim
For topics the consumer must be created first since messages are only delivered to the available consumers at the time the broker receives the message. For durable subscribers you can create a durable subscriber, kill it, run the producer, then start the subscriber again. http://java.sun.co

Re: Creating simple producer and consumer

2007-05-02 Thread Jonas Lim
Hi, Can you check if you're calling the connection's start method (connection.start()) before starting your consumers. You could also try running the example consumer that is included in the distribution to check if the problem is with your consumer. Regards, Jonas Bai Shen wrote: Okay, s

Re: tempDestinationAuthorizationEntry does not work for consumers

2007-02-14 Thread Jonas Lim
Good catch Lorne! Added a patch for this issue on the svn trunk r507792. https://issues.apache.org/activemq/browse/AMQ-1163 Regards, Jonas Lorne Wilson wrote: Folks, I've been trying to use the tempDestinationAuthorizationEntry feature in 4.2 and I think I've found a problem. If I set up a