activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naresh Bhatia <>
Subject How to ensure reliability of publish/subscribe against occassional network hiccup?
Date Thu, 12 Jul 2007 15:51:55 GMT

I would like to use ActiveMQ in an application where subcribers must receive
EVERY message published to their topic. If a subscriber looses a message,
its state would be out-of-sync with the publisher - and that would be a bad
thing! Note however, that there is no need to receive messages when the
subscriber is down or inactive, in other words durability of messages is not

1) What is the best way to use ActiveMQ in this scenario to protect against
occassional network hiccups? Is it enough to have a transacted session or a
non-transacted session with AUTO_ACKNOWLEDGE or CLIENT_ACKNOWLEDGE? Does
this guarantee the receipt of all messages?

2) How does publish-subscribe actually work? Does the publisher send a
seperate message to each subscriber and receive an explicit acknowledgement
from each or is the message sent out as a broadcast (multicast?) and then
explicit acknowledgements coming in from each subscriber?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message