Camel load foo.properties at application start: i" /> Camel load foo.properties at application start: i" /> Camel load foo.properties at application start: i"/>

Refresh property every hour in Camel

162 Views Asked by At

Using this code

<propertyPlaceholder id="properties" location="file:${basedir}/etc/foo.properties"/>

Camel load foo.properties at application start: is there a way to reload foo.properties every hour?

It can be useful if foo.properties changes.

1

There are 1 best solutions below

0
Luca Burgazzoli On

The camel-properties component has a property that can be used to control if properties have to be cached or not, see: https://github.com/apache/camel/blob/master/camel-core/src/main/docs/properties-component.adoc