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 2023/10/11 07:59:00 UTC

[jira] [Resolved] (CAMEL-19945) camel-core - Add bean as property placeholder function

     [ https://issues.apache.org/jira/browse/CAMEL-19945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-19945.
---------------------------------
    Resolution: Fixed

> camel-core - Add bean as property placeholder function
> ------------------------------------------------------
>
>                 Key: CAMEL-19945
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19945
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 4.2.0
>
>
> So you can invoke a method on a bean to return a value to use as a property placeholder.
> Something ala
> from("kafka:{{bean:topicService.system}}")
>    .to("...")
> This will lookup a bean with id topicService and invoke the system method (cannot take parameters as there is no exchange). The returned value is then used in the uri. 



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