How to set HornetQ message expiration time in EAP 6 ?

Solution Verified - Updated -

Issue

  • How to set expiration time for HornetQ messages?

  • Is there a way to configure a queue in jboss such that messages may be expired? In weblogic there is a JMS Queue configuration parameter called Time To Live Override - which we set with a max time for any messages to exist. Once that expires, regardless of the timeout on the message, the message will be sent to expiry queue. I'd like to configure this for one of our queues.

  • Is there a way to set the expiry date/time to leave for a message before I put it into a queue ?

  • What is the default expiry time?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.