[
https://issues.apache.org/jira/browse/CAMEL-15113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Bednar resolved CAMEL-15113.
--------------------------------
Fix Version/s: (was: 3.x)
3.5.0
Resolution: Fixed
Added skipDlqDeclare option and extended {{args}} option with {{dlq.queue}} and
{{dlq.binding}} prefixes.
> 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.5.0
>
>
> 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)