Hi Mikael,

  I had the exact same problem with Camel 2.6.  This was my configuration:


public void configure() throws Exception {              
  Calendar c = Calendar.getInstance();
  c.add(Calendar.MINUTE, 1);
  SimpleScheduledRoutePolicy simple = new SimpleScheduledRoutePolicy();
  simple.setRouteStartDate(c.getTime());
                
  c.add(Calendar.MINUTE, 2);
  simple.setRouteStopDate(c.getTime());
                
 
from("file://c:/routeTest").routeId("test").routePolicy(simple).to("file://c:/routeOutput").noAutoStartup();
}


With 2.6, the route would never be started.  Once I upgraded to 2.7,
however, the route starts after 1 minute and then terminates after 2
minutes.


--
View this message in context: 
http://camel.465427.n5.nabble.com/Scheduling-routes-with-RoutePolicy-tp4269200p4284809.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to