the right way :)
@Override
public void configure() throws Exception {
from("file:data").to("file:data/output");
getContext().addRoutes(fileRoute);//can be injected
}
--
View this message in context:
http://camel.465427.n5.nabble.com/re-
ute = new ProcessedFileRoute();
route.configure();
}
public class ProcessedFileRoute extends RouteBuilder {
public void configure() throws Exception {
from("file:data/output").to("file:data/processed");
}
}
--
View this message in context:
http
ameter in xml and import this part into
> configure method of Route1,2 class. Are there any examples how to do it?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/re-use-route-definition-tp5743696.html
> Sent from the Camel - Users mai
ethod of Route1,2 class. Are there any examples how to do it?
--
View this message in context:
http://camel.465427.n5.nabble.com/re-use-route-definition-tp5743696.html
Sent from the Camel - Users mailing list archive at Nabble.com.