How to set JMS_REQUEST_TIMEOUT on messages individually rather than Queue ?

Solution Verified - Updated -

Issue

  • Is there a way to use Using JmsConstants.JMS_REQUEST_TIMEOUT per message in 2.12.0?
  • I have a requirement where I need to specify timeout per message at the producer endpoint in camel route. I am using 2.12.0.redhat-610379 camel version. So after some research I found I can attach JmsConstants.JMS_REQUEST_TIMEOUT header to set the timeout on each message individually. I tried to use the header and it actually does set the timeout accordingly.
  • But I can notice that on http://camel.apache.org/jms.html it is mentioned that this feature is to be used 2.12.3 and onwards. Is there any caveat in using JmsConstants.JMS_REQUEST_TIMEOUT in 2.12.0.redhat-610379 ?

Environment

  • Red Hat JBoss Fuse
    • 6.1.0
  • Red Hat JBoss A-MQ
    • 6.1.0

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.