Hi,
Using ActiveMQ 5.3.0, with both libstomp and activemq-cpp clients, and
using
activemq-admin query
to view details, we have some tests that
connect/disconnect/reconnect/disconnect...
to both a queue and a durable topic. In between, persistent messages
are sent.
The "Subscriptions" value returned by this query script for the durable
topic
seems to grow and grow and grow over time as the clients reconnect
Subscriptions =
[org.apache.activemq:BrokerName=amq-broker,Type=Subscription,persistentM
ode=Durable,
subscriptionID=gtest_consumer,destinationType=Topic,destinationName=cons
umer,clientId=gtest_consumer,
org.apache.activemq:BrokerName=amq-broker,Type=Subscription,persistentMo
de=Durable,
subscriptionID=gtest_consumer,destinationType=Topic,destinationName=cons
umer,clientId=gtest_consumer,
org.apache.activemq:BrokerName=amq-broker,Type=Subscription,persistentMo
de=Durable,
subscriptionID=gtest_consumer,destinationType=Topic,destinationName=cons
umer,clientId=gtest_consumer,
org.apache.activemq:BrokerName=amq-broker,Type=Subscription,persistentMo
de=Durable,
subscriptionID=gtest_consumer,destinationType=Topic,destinationName=cons
umer,clientId=gtest_consumer,
etc.....
This does not occur with the Queue, which is also being
connected/disconnected/reconnected...
Subscriptions =
[org.apache.activemq:BrokerName=amq-broker,Type=Subscription,persistentM
ode=Non-Durable,
destinationType=Queue,destinationName=producer,clientId=Manager,consumer
Id=0343f653-1ea0-bd02-ee77-8debd69325b9_0_0]
which only displays a single subscription.
This behavior occurs using both libstomp and activemq-cpp clients.
Is this behavior normal for the durable topic? Any idea why the
duplicate entries?
Thanks!
Peter P