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/03 16:51:00 UTC
[jira] [Created] (CAMEL-19945) camel-core - Add bean as property placeholder function
Claus Ibsen created CAMEL-19945:
-----------------------------------
Summary: 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
Fix For: 4.x
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)