I forgot to include this for the configuration where you want to
automatically delete queues from durable JMS subscriptions:

  <auto-delete-created-queues>true</auto-delete-created-queues>


Justin

On Tue, Oct 10, 2023 at 8:46 AM Justin Bertram <jbert...@apache.org> wrote:

> Yes. You can use a combination of the following address-settings:
>
>  - <auto-delete-queues>
>  - <auto-delete-queues-delay>
>  - <auto-delete-queues-message-count>
>
> For example, if you wanted to remove queues (e.g. from durable
> subscriptions) on the address "myTopic" (e.g. that was being used as a JMS
> topic) then you might configure something like this:
>
>    <address-setting match="myTopic">
>       <auto-delete-queues>true</auto-delete-queues>
>       <auto-delete-queues-delay>3600000</auto-delete-queues-delay>
>
> <auto-delete-queues-message-count>-1</auto-delete-queues-message-count>
>    </address-setting>
>
> This would delete queues that hadn't had a consumer connect to them in an
> hour regardless of how many messages the queue had. See the documentation
> [1] for more details.
>
>
> Justin
>
> [1]
> https://activemq.apache.org/components/artemis/documentation/latest/address-settings.html#address-settings
>
> On Tue, Oct 10, 2023 at 6:47 AM Shiv Kumar Dixit
> <shivkumardi...@eurofins.com.invalid> wrote:
>
>> Hi,
>> If there a way in Artemis broker to automatically remove inactive durable
>> topic subscribers. E.g. check every hour of inactive subscribers and remove
>> the one who are not active for last 12 hours.
>>
>> Classic ActiveMQ has some configuration (
>> https://activemq.apache.org/manage-durable-subscribers) for this but do
>> we have similar in Artemis as well?
>>
>> Best Regards,
>> Shiv
>>
>>

Reply via email to