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

[jira] [Comment Edited] (CAMEL-14931) camel-kafka additionalProperties not set

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

Gurpal2000 edited comment on CAMEL-14931 at 4/18/20, 10:39 PM:
---------------------------------------------------------------

Downgrading to minor as I found this workaround:

If i replace the string value with a map (overloaded method) then it works as expected. What is the format of the method with String then?
{code:java}
.additionalProperties(new HashMap<String, Object>() {{
  put("transactional.id", "ABC");
}}){code}


was (Author: gurpal2000):
Downgrading to minor as I found this workaround:

If i replace the string value with a map (overloaded method) then it works as expected.

{{.additionalProperties(new HashMap<String, Object>() {{
          put("transactional.id", "ABC");
        }})}}

> camel-kafka additionalProperties not set
> ----------------------------------------
>
>                 Key: CAMEL-14931
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14931
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka
>    Affects Versions: 3.2.0
>            Reporter: Gurpal2000
>            Priority: Minor
>         Attachments: log.txt
>
>
> Camel: 3.2.0
> SB: 2.2.6
> Java: 1.8
> For a kafka producer, it seems the additionalProperties method does not seem to take effect. Specifically, the goal is to set "transactional.id" and I thought additionalProperties is the way to do it.
> I have attached a log where the kafka properties shows "transactional.id = null" on startup. I assume it should be set on startup. Other values are set as expected.
> Test code here: [https://github.com/gurpal2000/camelproblemdemo3|https://github.com/gurpal2000/camelproblemdemo3]
> You will need to have a sample broker running. I used a docker one.
> The documentation mentions prefixing the value with "additionalProperties" also. That does not work either.



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