camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Camel > Loading routes from XML files
Date Mon, 29 Nov 2010 13:23:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="">Loading
routes from XML files</a></h2>
    <h4>Page  <b>added</b> by             <a href="">Claus
    <div class="notificationGreySide">
         <h2><a name="LoadingroutesfromXMLfiles-LoadingroutesfromXMLfiles"></a>Loading
routes from XML files</h2>
<p><b>Available as of Camel 2.6</b></p>

<p>This cookbook shows how to load and add routes from XML files into an existing <a
href="/confluence/display/CAMEL/CamelContext" title="CamelContext">CamelContext</a>.</p>

<p>You can define Camel routes in XML files using the <tt>&lt;routes&gt;</tt>
tag with the namespace <tt>""</tt>.<br/>
Suppose we have the bar route as shown below in the <tt>barRoute.xml</tt> XML

<p>TODO: snippet E1</p>

<p>We can then load this route and add to the existing <a href="/confluence/display/CAMEL/CamelContext"
title="CamelContext">CamelContext</a> using the following lines of code:</p>

<p>TODO: snippet E1</p>

<p>If you are using older versions of Camel, you can do this as well but it requires
a bit more work. See this <a href=";revision=1040085"
class="external-link" rel="nofollow">commit log</a>.</p>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
       <a href="">View
       <a href=";showCommentArea=true#addcomment">Add

View raw message