[ https://issues.apache.org/jira/browse/CAMEL-15113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-15113: -------------------------------- Summary: camel-rabbitmq - Auto declare dead letter queues with custom args (was: Auto declare dead letter queues with custom args) > 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 > 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)