Thanks for Your response it helped me.
I made something like this:

    public boolean begin(Consumer consumer, Endpoint endpoint) {
        PhotoLoadProcessing.messagesCounter.set(0);
        PhotoLoadProcessing.inProgress.set(true);
    }

  public void commit(Consumer consumer, Endpoint endpoint, int
polledMessages) {
      PhotoLoadProcessing.inProgress.set(false);
  }

but I need to know when commit is called ? After all messages are consumed
by first consumer in route?

--
View this message in context: 
http://camel.465427.n5.nabble.com/File-componet-start-processing-files-tp5165723p5166028.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to