[ 
https://issues.apache.org/jira/browse/CAMEL-19916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769159#comment-17769159
 ] 

Dries Van Autreve commented on CAMEL-19916:
-------------------------------------------

I had a look at {{{}ConfirmType.CORRELATED{}}}, however the javadoc says:
{quote}Use with CorrelationData to correlate confirmations with sent messsages.
{quote}
I've not really found an option to pass such an object using the 
{{spring-rabbitmq-component}}

I notice in {{SpringRabbitMQProducer::processInOnly}} there's an invocation of 
the {{{}RabbitMQTemplate{}}}:
{code:java}
t.send(ex, rk, msg);
{code}
when looking further at the implementation, it will delegate to the {{send}} 
method with {{correlationData}} parameter begin {{null}}

> spring-rabbitmq-component mandatory option
> ------------------------------------------
>
>                 Key: CAMEL-19916
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19916
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-rabbitmq
>    Affects Versions: 4.0.0
>            Reporter: Dries Van Autreve
>            Priority: Minor
>
> In Camel 4, the component {{camel-rabbitmq}} was removed in favor of 
> {{spring-rabbitmq-component}}
> It seems however that not all options are supported in the new component. I 
> was looking for 
> [mandatory|https://camel.apache.org/components/3.21.x/rabbitmq-component.html#_component_option_mandatory],
>   but I cannot find a replacement. (Nor there seems a way to hook in a custom 
> Spring {{RabbitTemplate}} with own implementation for it as 
> {{SpringRabbitMQEndpoint}} creates its own.)
> The use case in which this is helpful, is when there's an exchange but the 
> routing to a queue fails (e.g. invalid routing key).
> It would be useful if this option is also implemented in 
> {{spring-rabbitmq-component}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to