You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Rahul Jain <ra...@gmail.com> on 2015/09/01 12:34:43 UTC

[Camel-Kafka] Value of KafkaConstants.KEY constant

In KafkaConstants, the constant "KEY" is declared as

* public static final String KEY = "kafka.CONTENT_TYPE";*

This is used to store the kafka message key in exchange. But why do we
refer to it as CONTENT_TYPE  here?

Re: [Camel-Kafka] Value of KafkaConstants.KEY constant

Posted by Raul Kripalani <ra...@evosent.com>.
Hi,

Good point.

Maybe Samuel (the contributor of camel-kafka, CC'ed) can have a look for us
;-)

We should also harmonise the header names with the style we use in other
components: CamelKafka... (upper camel case starting with Camel, followed
by component name, then header name).

We could only include this change for 2.16 but not for the 2.15.x or 2.14.x
release lines.

Regards,

*Raúl Kripalani*
Apache Camel PMC Member & Committer | Enterprise Architect, Open Source
Integration specialist
http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
http://blog.raulkr.net | twitter: @raulvk

On Tue, Sep 1, 2015 at 11:34 AM, Rahul Jain <ra...@gmail.com> wrote:

> In KafkaConstants, the constant "KEY" is declared as
>
> * public static final String KEY = "kafka.CONTENT_TYPE";*
>
> This is used to store the kafka message key in exchange. But why do we
> refer to it as CONTENT_TYPE  here?
>