Adam created CAMEL-14615: ---------------------------- Summary: camel kafka starter for spring does not consider camel.component.kafka.brokers property Key: CAMEL-14615 URL: https://issues.apache.org/jira/browse/CAMEL-14615 Project: Camel Issue Type: Bug Components: camel-kafka Affects Versions: 3.0.1 Reporter: Adam
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({color:#008000}"kafka:files?brokers=127.0.0.1:9092"{color}) Sample projects have been created to reproduce the bug: [https://github.com/deradam/camel-kafka-java] [https://github.com/deradam/camel-kafka] (kotlin version) -- This message was sent by Atlassian Jira (v8.3.4#803005)