0

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 ?

  • 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 Answers1

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