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

camel-rabbitmq - Auto declare dead letter queues with custom args

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.5.0
    • Component/s: camel-rabbitmq
    • Labels:
    • Estimated Complexity:
      Unknown

      Description

      There is no support to declare dead letter queues with custom arguments. I can find a TODO in RabbitMQDeclareSupport class.

      https://github.com/apache/camel/blob/88f46b1ce46f5cdace73b2721a1cb96a290d42dd/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQDeclareSupport.java#L41

       

      My requirement is to set a TTL on messages in dead letter queue while queue is declared by Camel. 

      What I have tried:
      If I create DLQ separately by camel with TTL and use that queue name in original queue then I get exception that TTL value can't be different. Because the declare parameter in RabbitMQEndpoint class declares both original queue and dead letter queue, there is no separate option if someone don't want to declare dead letter queue.

      Let me know if there is any workaround except creating queues manually.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bedla Jan Bednar
                Reporter:
                sourabh40320 Sourabh Tiwari
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: