camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Import xml fragments of camel routes?
Date Mon, 18 Nov 2013 10:32:13 GMT

No you cannot do this.

You can though have routes in seperate xml files and use <routeContext>

Though <routeContext> doesn't allow to use <onException> and the likes
from <camelContext>

On Fri, Nov 15, 2013 at 10:03 PM, dunnlow <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message