camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-8754) camel-kafka prevents sending anything other than String
Date Fri, 17 Jul 2015 07:40:05 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-8754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-8754.
--------------------------------
    Resolution: Duplicate

Duplicate of CAMEL-8790

> camel-kafka prevents sending anything other than String
> -------------------------------------------------------
>
>                 Key: CAMEL-8754
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8754
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-kafka
>    Affects Versions: 2.15.2
>            Reporter: Valentin Mayamsin
>            Assignee: Willem Jiang
>             Fix For: 2.16.0
>
>
> Due to incorrect camel-kafka Producer implementation, it prevents sending anything other
than String. See https://github.com/apache/camel/blob/a7dfc45097a610dca1a39c86f481182efc20e152/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaProducer.java#L72
> {code}
> String msg = exchange.getIn().getBody(String.class);
> {code}
> Apparently it should be something like
> {code}
> Object msg = exchange.getIn().getBody();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message