Hi I have created a class by extending ServiceSupport.

And I'm staring my program with the following code.

  public static void main(String... args) throws Exception {
        AbstractApplicationContext applicationContext = new
ClassPathXmlApplicationContext(
                                
"classpath:/META-INF/spring/camel-context*.xml");
        Main main = new Main();
        main.setApplicationContext(applicationContext);
        main.enableHangupSupport();
        main.addRouteBuilder(new CustomeRouteBuilder());
        main.run(args);
        
    }

I'm not sure how to register service here.
Can I add it in applicationcontext file ?



-----
Regards

kiran Reddy
--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-service-start-stop-tp5738073p5738109.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to