Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14615

camel kafka starter for spring does not consider camel.component.kafka.brokers property

    XMLWordPrintableJSON

    Details

    • 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

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                valdar Andrea Tarocchi
                Reporter:
                Giemza Adam
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: