camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Dynamic Changes to Properties File When Using Bridge Property Placeholder
Date Thu, 08 Nov 2012 06:04:41 GMT
On Wed, Nov 7, 2012 at 6:06 PM, pberkman <> wrote:
> I am using the
> org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer to
> parameterize most of the varible-configuration in the Camel Contexts/Routes
> as such:
>         <bean id="bridgePropertyPlaceholder"
> class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer">
>                 <property name="location" value="file:nextgate/ms/"/>
>         </bean>
> Unfortunately, the default is to cache all the property values.  So, I have
> to reload the app every time I need to change anything like a simple port
> number in one of the adapters, etc.
> Question: is there a way to configure the Bridge Property Placeholder so
> that it will check the modify time of the properties file and reload if
> necessary?

The bridge is an adapter to the Spring property configurer. So check
the Spring docs what they offer from options. Maybe there is a cache
option you can turn off. etc Or maybe from JMX force a re-load of the
file etc.

> thanks!
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message