activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Durable subscriptions not surviving network disconnect
Date Thu, 30 Jun 2011 14:28:08 GMT
There is a transport listener interface that can give you indications
of reconnects.
see: org.apache.activemq.ActiveMQConnection#addTransportListener

For a unit test, have a look at:

this uses a socket proxy to simulate a network failure between
networked brokers.

A simple network test with durable subs is:
you may need a combination of the two.

On 30 June 2011 15:09, Andreas Calvo <> wrote:
> Sorry for the late response.
> There is already a Jira issue
> (
> While I do know how to reproduce it using multicast brokers and producer and
> consumer from the example directory, I do not know how to make a junit case.
> If it's not difficult, I could try to do it.
> In the meantime, how can I capture when a client receives a disconnect from
> the broker and restarts the connection?
> I'm trying with advisory messages or execeptions in an embedded broker,
> without succeed.
> Any example of code that I could look at?
> thanks
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at


View raw message