What version are you using?

Are you using a queue or a topic? If a topic, is your subscription durable
or non-durable?

Are your messages flagged as persistent when sent? Does a JMX viewer such
as JConsole show that they exist in the broker after a restart?

Is message expiration a factor?

Does your client reconnect successfully but get no messages, or does it
fail to reconnect at all?

Tim

On Fri, Apr 27, 2018, 7:39 AM Syed <syed.mudas...@gaianconsultants.com>
wrote:

> Hi,
>   I have two activemq instances setup with MySql persistence.  I started
> the
> servers, and produced 50 msgs thru Producer using failover.  Then I started
> consumer using failover to consume message thru receive(5000) method.  The
> consumer indeed consumes.  During this execution, I stop one instance and
> then restart it.  The consumer still consumes.  Now when the second
> instance
> is stopped, thats where I am running into trouble.  Consumer doesn't
> consume
> at all.  Even I restart second instance, and re-run my consumer program
> again, still no messages are consumed.
>
> Any suggestions on how to make consumer consume even upon restarts?
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>

Reply via email to