Could you post the stacktrace, please? *Raúl Kripalani* Enterprise Architect, Open Source Integration specialist, Program Manager | Apache Camel Committer http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk
On Thu, Apr 18, 2013 at 4:34 PM, horyna <[email protected]> wrote: > 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. >
