camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddewaele <>
Subject Camel - Commons Configuration
Date Wed, 13 Mar 2013 13:25:45 GMT
Our application has a configuration repository based on Apache Commons

We're using commons configuration because we like the configuration file
reloading strategies and the ability to combine several configuration files
(to solve the issue of dealing with environment specific properties) into

I would like to use configuration values from that commons configuration
inside my Camel flow, so as per the documentation in , I created the
following beans :

	<bean id="configuration"
	    <property name="globalConfig" value="./base/globalConfig.xml"/>
	    <property name="properties" ref="configuration"/>

The first bean simply loads up the commons config file repository and
converts them into properties. I'm now able to retrieve configuration
properties inside my flow using the standard camel property syntax:

<camel:log message="========== Value = {{some/value/from/commons/config}}
=============" loggingLevel="DEBUG"/>

This works fine, except offcourse for when the configuration changes. As the
PropertyPlaceholder is constructed once at startup, it loads up the commons
configuration files and converts them into properties, but we lose the
ability to change the config files on a running system and have them picked
up by Camel.

Any idea on how something like this could be implemented using Camel /
Spring ? Is there something available out of the box or would this be custom
development ?

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

View raw message