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, 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