Hi
If they all have the same root folder (starting directory)
from file:files?filter=xxx
Then you can use filter to select which dir/files to accept. You can use
simple pattern with now as a date to make it match current day. Or write a
bit of code in a custom file filter class.
See the file
Thank you for your time, we need exactly that.
Jan
Sent from Nine<http://www.9folders.com/>
From: Federico Mariani
Sent: Friday, March 1, 2024 16:50
To: users@camel.apache.org
Subject: Re: Reconfigure incoming file endpoint to follow current date
Hi, I
Hi, I'd use a quartz scheduler and a route template, something like this:
routeTemplate("file-template")
.templateParameter("folder")
.from("file://data/{{folder}}")
.to("direct:computeFile");
from("quartz:scheduler?cron=0+0+12+*+*+?")
Hi,
We need to read files from a folder,that contains current date. During quiet
period after midnight we need to "switch" to the new folder. What are possible
solutions? Essentially we need to change endpoint configuration on runtime at
specific time. Our routes are configured using Java DSL.