You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Valentin Mayamsin (JIRA)" <ji...@apache.org> on 2015/05/08 05:57:59 UTC
[jira] [Reopened] (CAMEL-8754) camel-kafka prevents sending
anything other than String
[ https://issues.apache.org/jira/browse/CAMEL-8754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Valentin Mayamsin reopened CAMEL-8754:
--------------------------------------
That is not true. Take a look at Avro integration for example:
http://confluent.io/docs/current/schema-registry/docs/serializer-formatter.html
> camel-kafka prevents sending anything other than String
> -------------------------------------------------------
>
> Key: CAMEL-8754
> URL: https://issues.apache.org/jira/browse/CAMEL-8754
> Project: Camel
> Issue Type: Bug
> Components: camel-kafka
> Affects Versions: 2.15.2
> Reporter: Valentin Mayamsin
> Assignee: Willem Jiang
>
> 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)