Re: Reply:Re: Reply:ActiveMQ Dispatcher Policy

2011-11-22 Thread Eugene
stop is not really an option. stop will stop the MessageListener and not the actual DMLC. Restart either - if you call shutdown, I loose the entire JVM, thus no controll after that with JMX. So, my solution is to actually re-send the message to the Queue once they end-up in the Listener that is

Reply:Re: Reply:Re: Reply:ActiveMQ Dispatcher Policy

2011-11-22 Thread SuoNayi
stop on the DMLC will pause the consumers (not close)and stop the transport of the connection,not exit the entire JVM. shutdown on the DMLC will close all consumers and the underlying connection as well,not exit the entire JVM too. note that the messageListener is referenced all the time.when

Re: Reply:Re: Reply:Re: Reply:ActiveMQ Dispatcher Policy

2011-11-22 Thread Eugene
Yup - don't know why I said shut down the JVM. My bad. What I wanted to say is that even if you shutdown/destroy the DMLC - the message is NOT consumed by the other DMLC. IT IS Consumed only if I kill the JVM that the now shutdown/destroyed DMLC was running in. I just re-tested this. Eugene.

Reply:Re: Reply:Re: Reply:Re: Reply:ActiveMQ Dispatcher Policy

2011-11-22 Thread SuoNayi
Because in this case the DMLC is shut down normally.Messages will be acked before consumers are closed. It seems that you have to program to implement the mechanism you want by youself. At 2011-11-22 21:17:27,Eugene eugen.ra...@gmail.com wrote: Yup - don't know why I said shut down the JVM.

Reply:ActiveMQ Dispatcher Policy

2011-11-21 Thread SuoNayi
The broker will dispatch messages to consumers in batches before client's ack, then the client will dispatch each message to consumer who is interesting in. Messages that process unsuccessfully, says messageListener throws RuntimeException, will be redispatched to messageLisener by client if not

Re: Reply:ActiveMQ Dispatcher Policy

2011-11-21 Thread Eugene
So what your are trying to say is what I have mentioned: run-time this is not possible. You have to manually shut down the DMLC, which kind-of sucks :( -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-Dispatcher-Policy-tp4091599p4092470.html Sent from the ActiveMQ

Reply:Re: Reply:ActiveMQ Dispatcher Policy

2011-11-21 Thread SuoNayi
As you said, you could stop the DMLC which implements interface Lifecycle or restart it via jmx command. At 2011-11-22 02:03:35,Eugene eugen.ra...@gmail.com wrote: So what your are trying to say is what I have mentioned: run-time this is not possible. You have to manually shut down the DMLC,