Hi Everyone,
  I have the following code snippet.

  CamelContext cc=new DefaultCamelContext();
            cc.addRoutes(new RouteBuilder()  {
                           public void configure()  {
                               from("direct:start1").
                                
to("cxf://http://localhost:8080/JAXWS1/MyInterfaceImpl?serviceClass=com.syed.MyInterface&serviceName={http://syed.com/}MyInterfaceImplService&portName={http://syed.com/}MyInterfaceImplPort";);
                             
                           }
                         }
                        );
            cc.start();
            ProducerTemplate t=cc.createProducerTemplate();
            int annsal=t.requestBody("direct:start1", 80000, Integer.class);
            System.out.println("rudrish's annsal:"+annsal);
            cc.stop();

  I am able to get the output successfully.  But to my surprise the program
does not terminate.  It keeps running even after I stopped the camel
context.  And for your information, this is the only code I have in main
method.  And I don't have any other code.

  Can anyone help?  This may cause severe memory leaks in my project.

Thanks,
Syed.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Thread-does-not-terminate-tp5736045.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to