zhfeng commented on a change in pull request #3594:
URL: https://github.com/apache/camel-quarkus/pull/3594#discussion_r823258436



##########
File path: 
extensions/kafka/deployment/src/main/java/org/apache/camel/quarkus/component/kafka/deployment/KafkaProcessor.java
##########
@@ -68,4 +69,12 @@ public void configureKafkaComponentForDevServices(
             }
         }
     }
+
+    @BuildStep
+    public ReflectiveClassBuildItem reflectiveClasses() {
+        return new ReflectiveClassBuildItem(false, true,
+                "org.apache.kafka.clients.producer.KafkaProducer",
+                "org.apache.kafka.clients.consumer.KafkaConsumer",
+                "org.apache.kafka.clients.producer.internals.Sender");
+    }

Review comment:
       Good point! I'm not very sure why we need to use reflection here since 
```org.apache.kafka.clients.producer.Producer``` is an interface which does not 
have ```clientId``` field. So it probably can remove the reflection usage 
because ```clientId``` is alway from the property ```client.id```. Is it right ?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to