Hi, Which version of Camel are you using? If you don’t specify the bus option, camel-cxf will create a new bus per endpoint, if you stop the route1, it should not affect the route2. Can you show me the Spring configuration file that you were using?
-- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, November 4, 2013 at 2:49 PM, Ernest Lu wrote: > thanks for your help > For example I have two routes like this: > from("cxf://address1").to("cxf:address2").routeId("route1") > from("cxf://address3").to("cxf:address4").routeId("route2") > > if i remove the route1 > camelContext.stopRoute("route1"); > camelContext.removeRoute("route1"); > > the route2 will can not work. > > the log like this: > > 2013-11-04 14:46:37 INFO org.apache.camel.impl.DefaultShutdownStrategy:165 > --> Starting to graceful shutdown 1 routes (timeout 300 seconds) > 2013-11-04 14:46:37 INFO org.apache.camel.impl.DefaultShutdownStrategy:210 > --> Graceful shutdown of 1 routes completed in 0 seconds > 2013-11-04 14:46:37 INFO org.apache.camel.spring.SpringCamelContext:1882 > --> Route: route1 is stopped. > /*2013-11-04 14:46:37 INFO org.apache.camel.component.cxf.CxfEndpoint:844 > --> shutdown the bus ... org.apache.cxf.bus.spring.SpringBus@5aa77506*/ > 2013-11-04 14:46:37 INFO > org.eclipse.jetty.server.handler.ContextHandler:698 --> stopped > o.e.j.s.h.ContextHandler{,null} > 2013-11-04 14:46:37 INFO > org.eclipse.jetty.server.handler.ContextHandler:698 --> stopped > o.e.j.s.h.ContextHandler{,null} > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/cxf-bus-tp5742573p5742578.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).