-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.1
-
Fix Version/s: 3.2.0
-
Component/s: camel-kafka
-
Labels:None
-
Estimated Complexity:Unknown
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
.to("kafka:files").
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:
.to("kafka:files?brokers=127.0.0.1:9092")
Sample projects have been created to reproduce the bug:
https://github.com/deradam/camel-kafka-java
https://github.com/deradam/camel-kafka (kotlin version)
- is related to
-
CAMEL-14568 camel component configurations include nested configuration classes
-
- Resolved
-