Hi Camel community,

I have a case where a route with a remote file-based endpoint polls
a file message, processes it but in the GenericFileProcessStrategy<T>.onComplete
state an implementation of &move= throws an exception caused
by missing delete/write permission.

On next polling the same file is polled again …

I need to have a possibility to break the loop. My plan,
if I had the exception at my custom handler, is to detect
if the exception is caused by a missing permission
and if so  stopping the route, incrementing an error
counter and logging a severe message.

What error handler / callback is best for handling
exceptions in &move=, and &moveFailed=,
implementations, please?

(I have a component user hat on my head. If I was
a component author, I’d consider if necessary permission
could be probed earlier and signaling e.g. polling
strategy failed() or so.)

  Best regards
  Cc.

--
  Mr. Petr Kužel, Software Engineer
  Eurofins International Support Services s.à r.l.
  Val Fleuri 23
  L-1526 LUXEMBOURG

Reply via email to