You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Ganesh (Jira)" <ji...@apache.org> on 2020/09/04 07:13:00 UTC

[jira] [Comment Edited] (CAMEL-15496) Add support to add additional headers and properties

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

Ganesh edited comment on CAMEL-15496 at 9/4/20, 7:12 AM:
---------------------------------------------------------

[~cibsen@e-ma.net], 

Could you please give the comment? 
Asking you because you had worked in similar configuration side.

I use the `camel-rabbitmq-sink-kafka-connector`  and in that I have the following configuration.

Here the bean is available for me but I couldn't invoke the method `generateUuid`.  
{code:java}
"camel.beans.uuidGenerator": "#class:org.apache.camel.impl.engine.DefaultUuidGenerator",

"camel.sink.endpoint.additionalHeaders": "#bean:addHeaders",
"camel.beans.addHeaders": "#class:org.apache.camel.support.beans.SimpleDataHolderBean",
"camel.beans.addHeaders.mapData[UUID]": "#bean:uuidGenerator?method=generateUuid",{code}


was (Author: rgannu):
I use the `camel-rabbitmq-sink-kafka-connector`  and in that I have the following configuration.

Here the bean is available for me but I couldn't invoke the method `generateUuid`.  
{code:java}
"camel.beans.uuidGenerator": "#class:org.apache.camel.impl.engine.DefaultUuidGenerator",

"camel.sink.endpoint.additionalHeaders": "#bean:addHeaders",
"camel.beans.addHeaders": "#class:org.apache.camel.support.beans.SimpleDataHolderBean",
"camel.beans.addHeaders.mapData[UUID]": "#bean:uuidGenerator?method=generateUuid",{code}

> Add support to add additional headers and properties
> ----------------------------------------------------
>
>                 Key: CAMEL-15496
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15496
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-rabbitmq
>    Affects Versions: 3.4.3
>            Reporter: Ganesh
>            Priority: Major
>             Fix For: 3.6.0
>
>
> See this question
> [https://github.com/apache/camel-kafka-connector/issues/323]
>  
> The camel-rabbitmq-sink-connector needs to have support to add additional headers.
> While doing so, the basic AMQP properties were also couldn't be added. 
> The source kafka connector could be from any source. The headers and properties related to AMQP message cannot/should not be added at the source level. So, it should always be possible to add and manipulate the headers and properties via configuration. 
>  
> There should be a support to add these headers and properties in the camel sink connectors via configuration.



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