You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Ramdas Sawant <re...@gmail.com> on 2008/07/24 11:57:44 UTC

Setting Max limit of Topic for published persistent messages

Hi all,
           I want to restrict publishing JMS messages to a topic after
certain limit is reached(may be size/number of messages). For this
particular topic i have a durable subscription from one JMS client. I want
to persist the messages when the subscriber is not active, but upto a
certain point. How can i restrict this. sample configuration/code snippet
will be helpful. Thanks in advance.


Regards,
Ramdas

-- 
If you think, "you can", you can
If you think, "you can't", you are right

Re: Setting Max limit of Topic for published persistent messages

Posted by Yari Marchetti <ya...@staff.dada.net>.
Ramdas Sawant ha scritto:
> Hi all,
>            I want to restrict publishing JMS messages to a topic after
> certain limit is reached(may be size/number of messages). For this
> particular topic i have a durable subscription from one JMS client. I want
> to persist the messages when the subscriber is not active, but upto a
> certain point. How can i restrict this. sample configuration/code snippet
> will be helpful. Thanks in advance.
>
>
> Regards,
> Ramdas
>
>   
check:

http://activemq.apache.org/subscription-recovery-policy.html

for recovery policies available. There are a few based on time, count
and size.