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

Dots in RabbitMQ-component headers do not work

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      Setting Exchange headers does not work for all the constants. E.g.:

      .setHeader(RabbitMQConstants.DELIVERY_MODE, constant("2"))
      .setHeader(RabbitMQConstants.EXCHANGE_OVERRIDE_NAME, constant("test"))
      .setHeader(RabbitMQConstants.ROUTING_KEY, simple("${header.msgType}"))

      Only the header for routingkey is set as header. If I set the headers like this, so without using a dot (.) then all get set, but are useless ofcourse:

      .setHeader("rabbitmq_DELIVERY_MODE", constant("2"))
      .setHeader("rabbitmq_EXCHANGE_OVERRIDE_NAME", constant("test"))
      .setHeader(RabbitMQConstants.ROUTING_KEY, simple("${header.msgType}"))

       So only the ROUTING_KEY header exists in the function "publishToRabbitMQ" of the "RabbitMQMessagePublisher".

      I'm still checking but for now I have no idea why the header for the routingkey is working as expected but the others not.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Ploef Peter
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m