activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: actively close a durable subscription
Date Mon, 18 Feb 2013 15:03:12 GMT
On 02/18/2013 07:33 AM, Marco.Crivellaro wrote:
> A typical durable subscriber in my use case is started and stopped manually
> frequently (with different message selector) I would like to close the
> durable subscription when the consumer is stopped intentionally.
> I haven't found anything on how to end a durable subscription in a way
> activemq doesn't keep in memory a copy of the message for the subscriber;
> how can I achieve this?
> I can check for inactive subscribers like described here:
> http://activemq.apache.org/manage-durable-subscribers.html but I'd prefer to
> actively unsubscribe from the topic.
>
To remove your durable subscription use the 
Session#unsubscrobe(subscriptionName) method.

>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/actively-close-a-durable-subscription-tp4663609.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message