Hi No you cannot do this.
You can though have routes in seperate xml files and use <routeContext> http://camel.apache.org/configuring-camel.html Though <routeContext> doesn't allow to use <onException> and the likes from <camelContext> On Fri, Nov 15, 2013 at 10:03 PM, dunnlow <dunn...@yahoo.com> wrote: > I am using Spring 3.1 with Camel 10.1. > > I am working to support multiple environments with my camel/spring XML > configuration (using a combination of camel and spring properties and > distinct xml files). I have a "common.xml" file that holds routes (some are > quite large) that are common between the environments. In some cases > however there is a slight difference in the route (just a a few extra > "choice" blocks for example). I'd like to import those choice blocks into > my main common.xml file (similar to using routeContext but for just the > fragment of the route). > > Is this possible? If so, how? > Thanks! > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Import-xml-fragments-of-camel-routes-tp5743369.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen