activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artnaseef <>
Subject expiring active, idle Topic subscriptions
Date Wed, 18 Apr 2012 19:10:55 GMT
Is there a feature that can be used to expire active idle Topic subscriptions
to prevent a Topic from overflowing?

Note that the durable offline subscription expiration is a great feature,
but not sufficient for this need.  Consumers that subscribe to a Topic
(non-durable or durable) and then do not consume for long periods of time
are the concern.

Here's what I'm considering to implement:
* Add-on feature to enable expiration of idle subscriptions (non-durable or
* Configurable destination filter to match destinations to which the feature
is applied
* Option of 2 actions:
** Discard the active subscriber only
** Disconnect the client session (entire connection?) which created the
subscriber (perhaps using a client-supplied url-parm so clients can request
this operation)

The idea of disconnecting the client is to make sure the impacted client is
given a clear indication of the problem.  Use cases in which clients perform
startup and shutdown operations before and after the subscription could
potentially automatically recover from conditions that cause the client to
go idle in the first place.

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

View raw message