[WF 21, ActiveMQ module] How to drop a queue (related to a Topic) when the subscribe disconnects?

183 views
Skip to first unread message

Thiago MF

unread,
Apr 8, 2021, 9:35:42 AM4/8/21
to WildFly
Hi,

ActiveMQ is eventually throwing ActiveMQAddressFullException exception. After a further investigation, I realized that it happens because there are some durable queue (associated with a Topic) that has no subscriber. I expected that ActiveMQ itself deletes those queues, but after reading the documentation carefully, I understand that it keeps those queues by the premises that subscriber may connect again and then receive all the messages she missed when she wasn't connected. 

By the documentation (https://activemq.apache.org/components/artemis/documentation/latest/address-model.html), activating the "auto-delete-created-queue" property would solve the problem as it would guarantee that the queue would be deleted right after the subscriber disconnects from the queue.

So, another problem emerge: ActiveMQ module in the WF 21 doesn't support the "auto-delete-created-queue" property! Alternatively, I saw that "inactive subscribers" could be removed by setting the "offlineDurableSubscriberTimeout" and "offlineDurableSubscriberTaskSchedule" parameters when the broker is launched (https://activemq.apache.org/manage-durable-subscribers).

So, since "auto-delete-created-queue" property is not supported, how could I configure ActiveMQ module to delete a queue when subscribe disconnects from it? Is there an alternative workaround to this issue?

Thank you in advance.

Reply all
Reply to author
Forward
0 new messages