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
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
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.
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.
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
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
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,