Hi

If you have multiple XML files, then you can use xml:import or is it
xml:include (or whatever, google that).

Then you can define Camel endpoints in those other XML files, using
the <endpoint> with the Camel namespace.

<endpoint id="foo" url="activemq:queue:foo"
xmlns="http://camel.apache.org/schema/spring"/>



On Tue, Jan 24, 2012 at 1:14 PM, Tom Howe <tomh...@artcore.com> wrote:
> I came across
> http://camel.apache.org/how-do-i-import-routes-from-other-xml-files.html
> It allows importing routes using <routeContext/>. Is there something
> similar for Endpoints?
>
> I'd like to have separate files for each so that I can create tests that
> use the same Endpoints but different routes without having to replicate my
> Endpoints in multiple files.
>
> Thanks, Tom



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to