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

michael elbaz edited comment on CAMEL-14242 at 12/4/19 10:10 AM:
-----------------------------------------------------------------

The only way i found what is your opinion about ? is not ideal for me


{code:java}
    private Endpoint rabbitMq() throws Exception {
        RabbitMQComponent rabbitMQComponent = 
getContext().getComponent("rabbitmq", RabbitMQComponent.class);
        
rabbitMQComponent.setArgs(Collections.singletonMap("queue.x-max-priority", 
"10"));

        return 
rabbitMQComponent.createEndpoint(rabbitmq("foo").queue("foo").getUri());
    }
{code}
I don't understand why the args is accessible from the dsl in my previous 
example if it is no taken into account, when i debug the code i observe that 
args map always empty when using this as query parameter or dsl 
eg:"rabbitmq:foo?args=any.args" 


was (Author: michael992):
The only way i found what is your opinion about ? is not ideal for me


{code:java}
    private Endpoint rabbitMq() throws Exception {
        RabbitMQComponent rabbitMQComponent = 
getContext().getComponent("rabbitmq", RabbitMQComponent.class);
        
rabbitMQComponent.setArgs(Collections.singletonMap("queue.x-max-priority", 
"10"));

        return 
rabbitMQComponent.createEndpoint(rabbitmq("foo").queue("foo").getUri());
    }
{code}
I don't understand why the args is accessible from the dsl in my previous 
example if it is no taken into account

> camel-rabbitmq - Binding parameters with x- is not possible
> -----------------------------------------------------------
>
>                 Key: CAMEL-14242
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14242
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-rabbitmq
>    Affects Versions: 3.0.0
>            Reporter: michael elbaz
>            Assignee: Omar Al-Safi
>            Priority: Minor
>
> I can' use some rabbitMq parameter eg: *x-max-priority* please provide an 
> working exemple. 
> It was before possible doing that using deprecated parameter 
> *&queueArgsConfigurer=#rabbitMqQueueArgsConfigurer*  
> {code:java}
> @Bean("rabbitMqQueueArgsConfigurer")
> public ArgsConfigurer rabbitMqQueueArgsConfigurer() {
>     return map -> map.put("x-max-priority", 10);
> }
> {code}
> See this one:
> [https://stackoverflow.com/a/44651087/4271976|https://stackoverflow.com/a/44651087/4271976]



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

Reply via email to