camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Lorych <>
Subject File monitor does not work with spring properties
Date Thu, 08 May 2014 08:07:46 GMT

It seems that file monitor functionality fails when using spring properties via BridgePropertyPlaceholderConfigurer.

When directory and filename are explicitly configured in the URI file the route works fine
- file is being picked up on changes
--- route ---
<from uri="file:target/export?fileName=continousExport.csv&amp;noop=true&amp;idempotentKey=${file:name}-${file:modified}"
<to uri="stream:out" />

When directory and/or filename are referenced by spring properties the file is being read
only once, and it is not being picked up on changes.
--- route ---
<from uri="file:{{export.dir}}?fileName={{export.file}}&amp;noop=true&amp;idempotentKey=${file:name}-${file:modified}"
<to uri="stream:out" />
--- properties ---

Tested on 2.12.2, 2.12.3 and 2.13.0.

Not sure, whether it's a limitation of BridgePropertyPlaceholderConfigurer, bug in endpoint
initialisation or something else.
It would be great if you could comment on this, before me going to dig into this.


Z powazaniem
Daniel Lorych
System Consultant
Team Deal Life Cycle

DONG Energy<>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message