Hello Mikael I believe that component configuration in application.properties should work, so don't need to duplicate in YAML:
camel.component.jira.jira-url=URL camel.component.jira.password=PASSWORD Marat On Thu, Feb 29, 2024 at 9:00 AM Mikael Koskinen <mijap...@gmail.com> wrote: > Hi, > > Property placeholders allow us to reuse single things like Jira username > and password. But is there a concept in Camel that works with Camel YAML & > Karavan where we could reuse "named" endpoint definitions? > > So the idea is that I could (hopefully in application.properties) define > something like: > > myjira.username = test > myjira.password = 123456 > myjira.jiraUrl = https://comp.atlassian.com/jira > > And then in my route use this "named/keyed" definition when adding the Jira > component. So something like: > > - route: > from: > uri: jira > key: "myjira" > parameters: > type: NEWISSUES > steps: > - to: > uri: kamelet:http-sink > parameters: > url: https://webhooksite > method: POST > > The idea is that I could apply all the properties defined in the > application.properties to the endpoint instead of having to add the > properties one by one. > > I went through the documentation and found something that is almost there: > > https://camel.apache.org/manual/faq/how-do-i-configure-endpoints.html#HowdoIconfigureendpoints-Configuringurisusingendpointwithbeanpropertystyle > > But then I checked the YAML schema and I don't think it supports these > Endpoint-definitions. And if it does, I'm not sure if the Karavan designer > could keep up with it. > > So I'm not sure if something like this already exists. Or if I should use > Beans? Or is this a new feature idea. Thanks for any tips in advance. > > Best regards, > Mikael >