Hello, what is the best way to reuse a route with different parameters? Let's say I have many classes implementing RouteBuilder interface and add them all in camel-context.xml
<camelContext xmlns="http://camel.apache.org/schema/spring"> <routeBuilder ref="Route1" /> <routeBuilder ref="Route2" /> ... .... </camelContext> Almost in every Route class I repeat the similar logic: from("file:" + in).process(new DoWork()).to("file:" + out); Is it possible to reuse this part in each Route, to avoid code duplication? I'd have to configure in and out parameter 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 mailing list archive at Nabble.com.