i am new to camel, i find a interesting thing that the method start() is not
blocking and listening. The method main will finish and exit if there is not
"Thread.sleep(1000)". so need i start() and stop() every time when i use
camel? and need i run "context.start()" for every route msg? 
this is my demo below: 
public class CamelTest { 
    public static void main(String args[]) throws Exception { 
       CamelContext context = new DefaultCamelContext(); 
       context.addRoutes(new SomeRouteBuilder()); 
       context.start(); 
       Thread.sleep(1000); 
       context.stop(); 
    } 
-- 
View this message in context: 
http://old.nabble.com/need-i-start%28%29-and-stop%28%29-every-time-when-i-use-camel--tp28655285p28655285.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to