JBM Message Expiration does not work

Solution Verified - Updated -

Issue

JBM Message Expiration does not work.

There is nothing to configure the default TTL on the server side, the only way you can do is via JMS API:

javax.jms.MessageProducer;

MessageProducer msgProducer = null;
session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
msgProducer = session.createProducer(responseQ);
msgProducer.setTimeToLive(Long.valueOf(messageTtl));            

However, the messages remain on the given destination beyond the time set to expire.

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 4.3.x
  • Red Hat JBoss Enterprise Application Platform
    • 5.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.