Hi,

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 ---
export.dir=target/export
export.file=continousExport.csv

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.


Regards,
Daniel


Z powazaniem
Daniel Lorych
System Consultant
Team Deal Life Cycle

DONG Energy
www.dongenergy.com<http://www.dongenergy.com/>

Reply via email to