package my;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.main.Main;

/**
 * @author daikuro
 *
 */
public class MyMain {

/**
* @param args
*/
public static void main(String[] args) throws Exception{
  Main camel = new Main();
  camel.addRouteBuilder(route);
  camel.run();
}

public static RouteBuilder route = new RouteBuilder() {
  @Override
  public void configure() throws Exception {
    from("timer:httpget?repeatCount=1") // 1回だけ実行
    .to("log:end");
  }
};

}