Hello is my first post here. i want to mock my existing routes without change the routes.
i found to use advicewith in http://camel.apache.org/advicewith.html and i build one DSL for easy way tests MockEndpointSuport.java https://gist.github.com/bdmstyle/9669774 MyRouteTest https://gist.github.com/bdmstyle/9669734 MyRoute https://gist.github.com/bdmstyle/9669858 but the method "SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Mar 20, 2014 2:50:20 PM org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be null/bell Mar 20, 2014 2:50:20 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass INFO: Creating Service {xxxxxxxxx{hide private content}" the method replaceFromWith executes BEFORE camel try runnign the endpoints in this case from is CXF end point i have other than use for exemple "spring-ws:rootqname:{http://teste/bell/schemas}classRequest?endpointMapping=#endpointMapping" and I do not want run and up any services i want change "from" and "to" for mocks AFTER runnning if you see in https://gist.github.com/bdmstyle/9669774 the problem is there context.addRoutes(route); // in this line camel try load webservices...... i do not want this i want get RouteDefinition from the existing MyRoute something like "MyRoute.getRouteDefinitions" for replace endpoints context.getRouteDefinitions().get(MyRoute.getRouteDefinitions) .adviceWith(context, new AdviceWithRouteBuilder() { any one now how i can do this...and no change on my route to and from clauses because i think what is simples and easy to read String inside from thanks and sorry about my bad english -- View this message in context: http://camel.465427.n5.nabble.com/get-Route-Definition-by-existing-route-Advanced-tp5749158.html Sent from the Camel - Users mailing list archive at Nabble.com.