How do I automatically cleanup expired messages

Solution Verified - Updated -

Issue

  • Due to the business nature, sometimes the downstream consumer might not consume the messages in time which will often lead to producer application hung because of Producer Flow Control feature. Besides turning off the feature, customer is considering a way to automatically delete expired messages to reduce the broker's memory consumption
  • What is the way to automatically delete expired messages while the application code is not changed?

Environment

  • Red Hat AMQ
    • 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content