Is there a way to custom configure the EMS infrastructure to detect that there are no consumers to a particular queue and discard the messages from that queue automatically?

Is there a way to custom configure the EMS infrastructure to detect that there are no consumers to a particular queue and discard the messages from that queue automatically?

book

Article ID: KB0088403

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Description:
= = = = = = =
How to detect that there are no consumers to a particular queue and discard the messages from that queue.

Environment:
= = = = = =
All

Resolution:
= = = = = =

There is no in-built mechanism in EMS to detect a queue which does not have any listener and purge all the messages on that queue. However, using the EMS Admin APIs, it is very simple to create a java application that will periodically scan all queues and will purge a queue if it does not have a listener.

Keywords:
= = = = = =
Queue consumer

Issue/Introduction

Is there a way to custom configure the EMS infrastructure to detect that there are no consumers to a particular queue and discard the messages from that queue automatically?