You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/08/30 16:17:00 UTC

[jira] [Work logged] (CAMEL-12471) Dots in RabbitMQ-component headers do not work

     [ https://issues.apache.org/jira/browse/CAMEL-12471?focusedWorklogId=304356&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-304356 ]

ASF GitHub Bot logged work on CAMEL-12471:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Aug/19 16:16
            Start Date: 30/Aug/19 16:16
    Worklog Time Spent: 10m 
      Work Description: hedgy commented on pull request #3131: CAMEL-12471: Fix overriding rabbitmq exchange name with EXCHANGE_OVERRIDE_NAME header
URL: https://github.com/apache/camel/pull/3131
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 304356)
    Remaining Estimate: 0h
            Time Spent: 10m

> Dots in RabbitMQ-component headers do not work
> ----------------------------------------------
>
>                 Key: CAMEL-12471
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12471
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-rabbitmq
>    Affects Versions: 2.21.0
>            Reporter: Peter
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)