java code:
CamelContext context = new DefaultCamelContext();
... ...

        // start the route and let it do its work
        context.start();
        Thread.sleep(2000);
        // stop the CamelContext
        context.stop();
I have to do it every time?
start sleep stop
Is there a more elegant way to use CamelContext ?

Reply via email to