[
https://issues.apache.org/jira/browse/CAMEL-16701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-16701.
---------------------------------
Fix Version/s: 3.11.0
Resolution: Fixed
> Topic is not set if a KafkaConfiguration is used
> ------------------------------------------------
>
> Key: CAMEL-16701
> URL: https://issues.apache.org/jira/browse/CAMEL-16701
> Project: Camel
> Issue Type: Bug
> Components: camel-kafka
> Affects Versions: 3.7.3, 3.10.0
> Reporter: Florian Eckhard
> Priority: Trivial
> Fix For: 3.11.0
>
>
> If a KafkaConfiguration is used (see code) and no topic is defined in the
> configuration, the parameter from the URI is not taken over, but a null value
> is set.
> This leads to a consumer not having a valid topic name, but null being
> provided as a value.
> It looks like setProperties(endpoint, parameters); overrites the
> topic.{color:#cc7832}
> {color}
> KafkaConfiguration
> {code:java}
> @Bean
> public KafkaConfiguration kafkaConfig() {
> KafkaConfiguration kafkaConfiguration = new KafkaConfiguration();
> kafkaConfiguration.setBrokers(..);
> kafkaConfiguration.setClientId(..);
> //kafkaConfiguration.setTopic(kafkaTopic);
> return kafkaConfiguration ;
> {code}
> Route
> {code:java}
> from(kafka({{topic.name}}?configuration=#kafkaConfig"))
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)