You can configure the timer to only call once, by setting repeat count to 1

On Thu, Mar 12, 2015 at 5:38 PM, H2SO4 <davidmoeb...@web.de> wrote:
> ? 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to