camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Loading routes from XML files
Date Mon, 29 Nov 2010 13:23:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<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="https://cwiki.apache.org/confluence/display/CAMEL/Loading+routes+from+XML+files">Loading
routes from XML files</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
         <br/>
    <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>"http://camel.apache.org/schema/spring"</tt>.<br/>
Suppose we have the bar route as shown below in the <tt>barRoute.xml</tt> XML
file.</p>

<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="http://svn.apache.org/viewvc?view=revision&amp;revision=1040085"
class="external-link" rel="nofollow">commit log</a>.</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/CAMEL/Loading+routes+from+XML+files">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/CAMEL/Loading+routes+from+XML+files?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message