camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Howe <tomh...@artcore.com>
Subject Re: Is it possible to define Endpoints in a separate config file?
Date Tue, 24 Jan 2012 14:16:01 GMT
Oh, I was under the impression the <endpoint/> had to go inside the
<camelcontext/>.
Which items can go outside of <camelcontext/> and what must go inside
<camelContext/>?




On Tue, Jan 24, 2012 at 1:42 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:

> 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 <tomhowe@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: cibsen@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message