activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Virtual topic subscriber expiration?
Date Wed, 04 Jan 2012 12:36:31 GMT
There's no explicit setup for that as those are just regular queues from
which no one consumes. The simple manual solution is to just delete unused
queues and virtual topic will stop sending messages there

Some things you can do to automate this process is:

- set expiry on the messages you're sending so that those queues don't keep
messages
- try deleting inactive destinations as described here -
http://activemq.apache.org/delete-inactive-destinations.html

Note that deleting inactive destinations assumes that there are no
consumers, producers and messages in a certain queue for some time, so this
might not work if your destinations are high-volume (as messages will live
in the queue for some time). Perhaps one of the improvements in this area
is to allow to delete queues which just don't have consumers for some time
and ignore message count.


Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Tue, Jan 3, 2012 at 9:08 PM, Jason Dillon <jason@planet57.com> wrote:

> On Jan 3, 2012, at 3:25 AM, Dejan Bosanac wrote:
> > The messages will be copied to relevant queues only if there's a consumer
> > there. Is there any specific problem you're experiencing.
>
> This doesn't really line up with my understanding for how virtual topics
> work at all.  If my client is offline there wouldn't be a consumer for it,
> but messages sent to a virtual topic are delivered when my client becomes
> online again.
>
> So something is remembering that in the past my client had connected and
> was consuming from the virtual topic queue, so that messages get copied to
> that queue even when my client is offline .
>
> What I want to know is how to configure the expiration for the remembering
> of my client.  Pretty much exactly the same as what is described in the
> "Removing inactive subscribers" section on this page:
>
> http://activemq.apache.org/manage-durable-subscribers.html
>
>
> > this is not needed for virtual topics as they work differently.
>
> Sure I understand that virtual topics work differently than durable topics.
>
> Does activemq support expiring virtual topic clients in the same way that
> you can expire inactive durable subscribers?
>
> --jason
>
>
>

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