How can I get a trigger once my route completes processing a directory and its sub directories in camel ? Is there any way I can specify this in the route ?
Asked
Active
Viewed 325 times
0
-
show us your route where you define to process directory and sub directory? You can use `.onCompletion()` – pvpkiran Nov 23 '17 at 10:17
1 Answers
1
Yes if its from("file:..")
then its a batch consumer, and you can find the information on the last file which has a message header with CamelBatchComplete
with the value true
.
See more details at the Camel website: http://camel.apache.org/batch-consumer.html

Claus Ibsen
- 56,060
- 7
- 50
- 65
-
can it be done if its not from("file:..") ? Will it be possible to do for the first child level ? – user3203030 Dec 04 '17 at 16:33