Announcement Announcement Module
Collapse
No announcement yet.
Cancel consumers of long-idled queue & delete it from Broker? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cancel consumers of long-idled queue & delete it from Broker?

    Several days ago I asked a question about How to automatically declare queue for unroutable message, Now I have another question that opposite to it:

    For a queue that always empty since several times(for example, 12 hours) ago, how can I cancel consumers of it in SimpleMessageListenerContainer, and delete this long-time-empty queue from Broker?

    Any response would be greatly appreciated.
    Regards.

  • #2
    You can mark your Queue with auto-delete="true" on bean definition and stop the ListenerContainer via scheduler.
    Having that your the queue will be deleted from Broker, bacuase it is auto-deleted and doesn't have listeners.

    Comment

    Working...
    X