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 2020/09/22 05:06:00 UTC

[jira] [Commented] (CAMEL-15565) camel-main - camel.beans configuration should support lookup existing bean

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

Claus Ibsen commented on CAMEL-15565:
-------------------------------------

If there is an existing bean such as foo that has been registered then you should be able to do

camel.beans.foo.someNameHere=123

So we can lookup bean by id foo and set the value.
Today you need to create a new bean first via

camel.beans.foo = #class:com.MyFoo


> camel-main - camel.beans configuration should support lookup existing bean
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-15565
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15565
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-main
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.6.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)