activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Stette" <>
Subject ActiveMQ peer mode and durable subscriptions
Date Fri, 27 Jul 2007 16:22:39 GMT
I'm currently using ActiveMQ in peer mode with brokers embedded in a number
of distributed nodes.  I'd like to make messages published on some topics
durable, so that they are reliably delivered to subscribers.  I am happy
with messaging potentially being lost in the case of a restart of the
publishing process in this scenario, so I don't want to make the publishers

My question is then:
If I make subscribers to these topics durable (and set a suitable message
expiry time), will messages be delivered in the following scenario?

- I have processes P1 and P2 with embedded brokers, these are connected
using the peer transport.
- I have a publisher Pub1 in process P1, and a durable subscriber Sub1 in
process P2, and these are communicating successfully.
- The connection goes down between P1 and P2, say due to a network fault.
- Pub1 publishes a message M.
- The connection is restored between brokers in P1 and P2.

At this point, will the message M be redelivered to Sub1?

I guess my question then is: is the transport between peer brokers "durable"
in the sense that durable subscriptions will be treated as such?

Many thanks,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message