[ https://issues.apache.org/jira/browse/CAMEL-14615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17044559#comment-17044559 ]
Andrea Tarocchi commented on CAMEL-14615: ----------------------------------------- [~Giemza] I have created a PR that solves the issue https://github.com/deradam/camel-kafka-java/pull/1 still not sure if it can be regarded only as a workaround. Still investigating. > 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 > Assignee: Andrea Tarocchi > Priority: Major > > 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)