Ok, i gave the secont route routeId(route2ID) and replace: getCamelContext().getRouteDefinition('route2ID').adviceWith(getCamelContext(), new AdviceWithRouteBuilder() { @Override public void configure() throws Exception { weaveById("httpToID").replace().to("mock:test"); } });
and now become a NullPointerException, but camel before logs: Route: route2ID started and consuming from: Endpoint[direct:anotherRoute] -- View this message in context: http://camel.465427.n5.nabble.com/How-to-set-mock-for-inner-route-tp5731085p5731091.html Sent from the Camel - Users mailing list archive at Nabble.com.