camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajayappa <anil.jaya...@gmail.com>
Subject How to make camel stop automaticaly
Date Mon, 01 Oct 2007 21:26:30 GMT

I've a program like this :

public static void main(String args[]) {
  CamelContext ctx = new DefaultCamelContext();
  ctx.addRoutes(new RouteBuilder() {
  public void configure() throws Exception {
    from("file:src/data?noop=true").to("smtp://localhost?#xyz@abc.com");
  }
  ctx.start();
}

Is it possibly to make Camel stop (ie the program should end) immediately
after all the files in the folder data are processed ??




-- 
View this message in context: http://www.nabble.com/How-to-make-camel-stop-automaticaly-tf4551224s22882.html#a12988246
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message