Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16811

Cannot consume messages from sjms2 endpoint with deliveryMode set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.8.0
    • 3.11.1, 3.12.0
    • camel-sjms
    • None
    • Unknown

    Description

      (Note: The component in question should be camel-sjms2, but that was not an option in the component list.)

      Messages cannot be consumed from an sjms2 endpoint with a delivery mode query parameter specified.

      To reproduce this issue, I was using InOnlyQueueProducerTest in both the camel-sjms and camel-sjms2 components. In both tests, I changed the first producer endpoint URI to the following (where component is sjms and sjms2, respectively):

      .to("[sjms,sjms2]:queue:" + TEST_DESTINATION_NAME + "?deliveryMode=1");
      

      The sjms test continues to succeed, but the sjms2 test fails due to the consumer not receiving the message before timing out.

       

      I could not determine a root cause, but as a workaround, I did discover that manually setting the JMSDeliveryMode header in the route or in the send call did work as expected. 

       

       

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            sgalla Shannon Gallagher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: