I'm trying to use the ProcessStrategy functionality of  Apache Camel but
it's not working for the moment.

 

Routing-class:

endpoint.setProcessStrategy(new MyGenericFileProcessStrategy<File>());

 

 

MyGenericFileProcessStrategy-class:

class MyGenericFileProcessStrategy<T> extends
GenericFileProcessStrategySupport<T> {

 

                @Override

                public boolean begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint, Exchange exchange, GenericFile<T> file)

                                               throws Exception {

                               

                               /* I'm expecting 5 files, only when all files
are in the current directory I want to start the route

                               When I'm using the operations.listFiles()
method it returns 'null'.

                               How can I use this technique?*/

 

return true;

}

}

 

Pieter

Reply via email to