Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15062

Cannot express multiple binding parameters in an URI of RabbitMQ

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.1, 3.2.0
    • 3.4.0
    • camel-rabbitmq
    • None
    • Camel 3.2.0 (orginally 3.0.1)
      Spring Boot 1.3.5RELEASE
      FasterXML Jackson 2.6.6
      Eclipse Jetty 9.2.16.v20160414

    • Unknown

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              Eduard.Rindt Eduard Rindt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: