You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jan Bednar (Jira)" <ji...@apache.org> on 2020/07/07 20:52:00 UTC

[jira] [Assigned] (CAMEL-15113) camel-rabbitmq - Auto declare dead letter queues with custom args

     [ https://issues.apache.org/jira/browse/CAMEL-15113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Bednar reassigned CAMEL-15113:
----------------------------------

    Assignee: Jan Bednar

> camel-rabbitmq - Auto declare dead letter queues with custom args
> -----------------------------------------------------------------
>
>                 Key: CAMEL-15113
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15113
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-rabbitmq
>    Affects Versions: 3.3.0
>            Reporter: Sourabh Tiwari
>            Assignee: Jan Bednar
>            Priority: Major
>              Labels: help-wanted
>             Fix For: 3.x
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)