Hi, if is possible to create a Route using from(Endpoint ep) or from("uri"), but I want to be able to register different endpoints in different situations and let camel do the assigning for me. Is this possible?
The reason I want to do this, is to be able to create tests for routes where I do @EndpointInject("ref"="myRouteStart", "uri"="direct:start") Endpoint ep; in the test and then have something like: class MyRoute extends RouteBuilder { public void configure() throws Exception { ref("myRouteStart").process().to("myRouteEnd"); } Is this possible or is the ref and the uri of an endpoint essentially the same and thus cannot be used for abstraction? Regards, Tarjei -- View this message in context: http://old.nabble.com/Why-isn%27t-it-possible-to-create-a-route-from-a-endpoint-id--tp27901495p27901495.html Sent from the Camel - Users mailing list archive at Nabble.com.