title: camel stop when there are no files in the folder
body: <p>I'm new to camel. I'm trying to create a small application that allows me to move a file from one location to another. I am forced to use camel for various reasons. I can execute the move but I can not make camel stop when there are no more files within the folder. I tried in several ways but without success. </p>
  
  <p>Here is the code I used:</p>
  
  <pre><code>try {
     Main main = new Main();
     main.addRouteBuilder(createRouteBuilder());
     main.run();
  } catch (Exception e1) {
     e1.printStackTrace();
  }
  
  protected RouteBuilder createRouteBuilder() throws Exception {
     return new RouteBuilder() {
        public void configure() throws Exception {
            from("file:./xxx").to("file:C:\\tomcat-6.0.37\\apache-tomcat-6.0.37\\yyy");   
        }
     };
  }
  </code></pre>