Eduard Rindt created CAMEL-15062:
------------------------------------
Summary: Cannot express multiple binding parameters in an URI of
RabbitMQ
Key: CAMEL-15062
URL: https://issues.apache.org/jira/browse/CAMEL-15062
Project: Camel
Issue Type: Bug
Components: camel-rabbitmq
Affects Versions: 3.2.0, 3.0.1
Environment: Camel 3.2.0 (orginally 3.0.1)
Spring Boot 1.3.5RELEASE
FasterXML Jackson 2.6.6
Eclipse Jetty 9.2.16.v20160414
Reporter: Eduard Rindt
As a Camel client, I need to define binding parameters in an URI that describes
a from point of a Camel path. The way suggested by the documentation is not
working.
Following is an example of the URI of a RabbitMQ that fails to set binding
parameters:
{{rabbitmq://rabbitmq.dev.mycompany.net/myExchange?username=guest&password=guest&queue=myQueue&exchangeType=headers&vhost=all&autoAck=false&autoDelete=false&automaticRecoveryEnabled=true&args=arg.binding.country=CZ&args=arg.binding.type=myMessageType&args=arg.binding.x-match=all}}.
A short look into the code uncovers that the {{RabbitMQEndpointConfigurer}}
expects the related 'args' (multi)value be stored in a map, but the URI scanner
always encodes multivalues into a list with a (sub)name and a related value
kept together in a single string. In turn, the whole 'args' parameter is
ignored.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)