No its only executed one time on the first poll.

If you stop and remove the route, and add another similar route back,
then yeah its a new route/consumer and it will be called again.

On Fri, Nov 20, 2015 at 12:49 AM, David Hoffer <[email protected]> wrote:
> What is the lifecycle of
> the GenericFileExclusiveReadLockStrategy#prepareOnStartup() method.  I'm
> assuming that it will never be called more than once at startup...but is
> that correct?
>
> We store state in our custom GenericFileExclusiveReadLockStrategy class and
> the state is cleared when prepareOnStartup() is called.
>
> Is there any edge cases that could cause this method to be called more than
> at startup of the app?
>
> -Dave



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to