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

camel-jms - JMS consumer should detect JMSReplyTo being sending to itself to avoid circular looping

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.10.2
    • 3.0.0.RC1, 3.0.0
    • camel-jms
    • None
    • Unknown

    Description

      If people do something stupid to send a message to a queue which has a JMSReplyTo that goes back to the same queue, then that message would go in looping (endless).

      We should maybe add some check for this, and add some option people can turn on|off this check. And if the check is enabled it would detect this and not send back a reply to itself.

      There may be some odd use-cases where people send back reply messages to the same queue. And maybe have some dynamic router logic that can break the chain when done.

      Attachments

        1. JmsReplyToComponentEndlessLoopTest.java
          2 kB
          Devendra Khanolkar
        2. JmsReplyToComponentEndlessLoopTest.java
          3 kB
          Devendra Khanolkar
        3. JmsConfiguration.java
          49 kB
          Devendra Khanolkar
        4. EndpointMessageListener.java
          17 kB
          Devendra Khanolkar

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: