[ 
https://issues.apache.org/jira/browse/CAMEL-22760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043837#comment-18043837
 ] 

Claus Ibsen commented on CAMEL-22760:
-------------------------------------

Ah okay so its maybe not a bug - you were just expecting that spring-boot kafka 
settings was automatic configured in camel-kafka so you only configure this 
with spring.kafka.xxx

However that is not the case and as such you ask for some kind of improvement.

This example works fine and is configured via camel
https://github.com/apache/camel-spring-boot-examples/blob/main/kafka-sql-transaction/src/main/resources/application.yaml

> Camel kafka isn't auto-configured from spring boot
> --------------------------------------------------
>
>                 Key: CAMEL-22760
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22760
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka, camel-spring-boot
>    Affects Versions: 4.16.0
>            Reporter: David J. M. Karlsen
>            Priority: Major
>             Fix For: 4.17.0
>
>
> I have to do this:
> {noformat}
> camel:
>   component:
>     kafka:
>       security-protocol: ${spring.kafka.security.protocol}
>       ssl-truststore-location: /etc/kafka/ca-certs/ca.crt
>       ssl-truststore-type: ${spring.kafka.ssl.trust-store-type}
>       ssl-keystore-location: /etc/kafka/user-certs/user.p12
>       ssl-keystore-type: ${spring.kafka.ssl.key-store-type}
>       ssl-keystore-password: ${spring.kafka.ssl.key-store-password}
>       brokers: ${spring.kafka.bootstrap-servers}
> spring:
>   kafka:
>     security:
>       protocol: SSL
>     ssl:
>       trust-store-location: 
> file:${camel.component.kafka.ssl-truststore-location}
>       trust-store-type: PEM
>       key-store-location: file:${camel.component.kafka.ssl-keystore-location}
>       key-store-type: PKCS12
> {noformat}
> to get camel-kafka properly configured.
> when using
>  <dependency>
>       <groupId>org.apache.camel.springboot</groupId>
>       <artifactId>camel-kafka-starter</artifactId>
>     </dependency>
> The "starter" doesn't really autoconfigure any kafka setup in camel from 
> spring-boot like for other components - in particular the bootstrap servers 
> isn't passed on.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to