Before I reinvent the wheel, for Camel 2.4 I'm attempting to check for the
following error conditions for done file handling:

1) Done file w/o corresponding regular file
2) Regular file w/o done file after period of time (say 5 minutes).

I'm currently using a GenericFileExclusiveReadLockStrategy to check for the
done file and returns true in the acquireExclusiveReadLock if found.

My current thinking for #1 is to treat it as a special case of #2 (I use no
pattern matching on the endpoints).

I'd create a property on the exchange to define "LOCKFAIL" property for
files that have failed to obtain a lock.  My routes would then be configured
to check the exchange property and deal with it.  (The LOCKFAIL would be set
based upon a filename, timer map w/in my current
GenericFileExclusiveReadLockStrategy instance).

Suggestions? This feels wrong based upon having to change all the dependent
routes..

-- 
-------------------------------------------
Craig Taylor
[email protected]

Reply via email to