activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allesmallachen <>
Subject Subscription acknowledgements
Date Thu, 15 Mar 2007 15:34:50 GMT

I have an application scenario where it is neccessary that subscribers know
when they are successfully subscribed.

1. Is there a mechanism available in ActiveMQ (I couldn't find any) or do I
have to implement some kind of request/reply between subscribers and
publishers (like: "plz send a dummy notification to my topic"->"dummy
notification"->"ok, I'm subscribed")?

Another solution could be implemented with advisory messages.
A subscriber first subscribes to the predefined advisory topic, then to his
topic of interest and then waits until he receives the advisory notification
regarding his topic subscription.
However, the documentation of advisory messages does not define precisely
when an  advisories message is created. 
2. Is the advisory message created when a subscription message is received
by a broker or when a subscription is actually active (i.e. effected the
data-structures on the broker, is part of the notification matching

This problem is even more sever if you have a network of brokers where it
can take some time until a subscription is active.

I think acknowledgments are needed because otherwise a subscriber cannot
decide whether he receives no notifications because there are none or
because his subscription failed.

I'm interested in your thoughts and suggestions regarding subscription
acknowledgments with JMS.

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

View raw message