? Sorry but I'm not sure what you mean

my main method looks the following at the moment

 public static void main(String args[]) throws Exception {
        CamelContext camelContext = new DefaultCamelContext();
        camelContext.addRoutes(new RouteBuilder() {
                                   public void configure(){
                                      
from("rest:get:http://my-homepage.com:8080/somepage/";).to("file:data/outbox");
                                   }
                               }
        );

        camelContext.start();
        Thread.sleep(10000);

        camelContext.stop();
    }

The route has been excecutet and I just want to do it one time. So where and
why do I need a timer?



--
View this message in context: 
http://camel.465427.n5.nabble.com/download-from-rest-endpoint-tp5764051p5764055.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to