Hey all,
I am looking for a way in Camel to start a context on a given route
(which could be email, sftp, ftp or files) and not stop until all
files/messages that meet the route criteria have been processed. I have
not been able to find any built in functionality that would do this.
The "sendEmptyMessageWhenIdle" would not work for email jobs and
"OnCompletion" is triggered for every exchange that happens.
My setup is very basic and is as detailed below?
context.addRoutes(new RouteBuilder() {
public void configure() throws Exception{
from(route).process(new FileProcessor());
}
});
context.start();
Thread.sleep(100000);
context.stop();
Any help is appreciated.
Regards,
Josiah Mangiameli
--
Josiah Mangiameli
Software Developer
Urjanet Energy Solutions