Red Hat Camel K is deprecated
Red Hat Camel K is deprecated and the End of Life date for this product is June 30, 2025. For help migrating to the current go-to solution, Red Hat build of Apache Camel, see the Migration Guide.4.3. 配置 Camel 集成组件
您可以在集成代码中以编程方式配置 Camel 组件,也可以在运行时在命令行中使用配置属性。您可以使用以下语法配置 Camel 组件:
camel.component.${scheme}.${property}=${value}
camel.component.${scheme}.${property}=${value}
例如,要为暂存事件驱动的架构更改 Camel seda
组件的队列大小,您可以在命令行中配置以下属性:
camel.component.seda.queueSize=10
camel.component.seda.queueSize=10
先决条件
流程
输入
kamel run
命令,并使用--property
选项指定 Camel 组件配置。例如:Copy to Clipboard Copied! Toggle word wrap Toggle overflow kamel run --property camel.component.seda.queueSize=10 examples/Integration.java
kamel run --property camel.component.seda.queueSize=10 examples/Integration.java