You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/03/18 20:53:00 UTC

[jira] [Commented] (CAMEL-17815) camel-jbang - Modeline properties as initial properties so they can configure via camel-main

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

Claus Ibsen commented on CAMEL-17815:
-------------------------------------

This can only be routes loaded from directory such as yaml,xml and even java but they are runtime compiled as we need access to the resource (source) to do modeline parsing as its from the source.

Also its not only modeline, its special for yaml-dsl where we have spec/configuration and spec/traits that can have properties needed during bootstrap.
For this we need some API we can use to eager parse and so let camel-yaml-dsl do this eagerly.

> camel-jbang - Modeline properties as initial properties so they can configure via camel-main
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-17815
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17815
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang, camel-main
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.17.0
>
>
> # camel-k: property=camel.component.kafka.createConsumerBackoffMaxAttempts=3
> Setting this in a yaml route then the component property is not active during bootstrap as camel-main have pre-parsed earlier.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)