Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Notifier when FTP Polling starts to read a file

$
0
0
Hi! I'm trying to audit a route which starts with *from("ftp:*)*. The
objetive is to log (in another class) when the FTP Consumer detect a file
and the consumer start to process the FIle (move or delete, or anything).

My first approach is to create a Notifier and process the exchanges, but i
don't know if intercepting the ExchangeSendingEvent is the correct way. When
I intercept that exchange is when the consumer is sending the exchange when
it finish to process the file.

Is there another event to make this possible? Or should I use an
interceptor?

Viewing all articles
Browse latest Browse all 5648

Trending Articles