I'm testing my upgrade to 2.11 and noticed a bug in how beanMethod
invocations are parsed.
I'm using Spring to define my routes.
The following invocation expression: exec(*, '', 'arg3') gets parsed as
arg1: *
arg2:
arg3: ,arg3 (notice the comma).
I tracked down the bug to the class
This is specific to camel 2.11.0. Done file deletion worked as expected in
2.10.0
Scenario:
I have a fileConsumer configured for a directory with done files. It is
expected that every file dropped in the directory has a filename.done
file.
In both 2.10.0 and 2.11.0 files are consumed
I have a use-case where I need to consume files at a fixed cron schedule.
For example, I need my input route to resume everyday at 6AM, process all
files collected in the input directory and go into suspension till 6AM the
following day.
I was hoping the CronScheduledRoutePolicy would be useful,
Thank you for the prompt response guys.
I think I have at least three interesting leads, and I am pretty sure at
least one will work
1) Use sendEmptyMessageWhenIdle in the route and pause the route when an
empty message is detected
2) Extend the DefaultPollingConsumerPollStrategy and override