简体   繁体   English

BridgePropertyPlaceholderConfigurer骆驼豆

[英]BridgePropertyPlaceholderConfigurer camel bean

I use the following bean to manage properties in camel as below : 我使用以下bean来管理骆驼中的属性,如下所示:

 <bean id="ilePropertiesConfigurer"
    class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer">
    <property name="properties" ref="allProperties" />
 </bean>

allproperties is a java class. allproperties是一个Java类。 it works very well when starting the application. 启动应用程序时,它工作得很好。

But now, I want to update properties without restarting my application. 但是现在,我想更新属性而不重启应用程序。 I update allproperties but it still takes the old values. 我更新了allproperties,但仍然使用旧值。

Can you help me? 你能帮助我吗?

This is not supported in Apache Camel with that Spring property placeholder bridge. 具有该Spring属性占位符桥的Apache Camel不支持此功能。 You need to restart your application. 您需要重新启动应用程序。

OSGi Blueprint has a concept of allowing to reload/restart your application when properties are changed, but it does a full bundle restart command. OSGi Blueprint的概念是当属性更改时允许重新加载/重新启动应用程序,但是它执行完整的捆绑包重新启动命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM