When using camel-kafka-starter with Spring, I am declaring the bokers list in the application properties (camel.component.kafka.brokers=localhost:9092) and want to connect to kafka as a producer with
However I get the following error: Caused by:
java.lang.IllegalArgumentException: URL to the Kafka brokers must be configured with the brokers option on either the component or endpoint.
It only works if I configure the broker via the query parameter:
Sample projects have been created to reproduce the bug:
https://github.com/deradam/camel-kafka (kotlin version)