camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Running Camel standalone and have it keep running
Date Sun, 09 Jan 2011 11:18: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/Running+Camel+standalone+and+have+it+keep+running">Running
Camel standalone and have it keep running</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="RunningCamelstandaloneandhaveitkeeprunning-RunningCamelstandaloneandhaveitkeeprunning"></a>Running
Camel standalone and have it keep running</h2>

<p>If you are using Camel as a standalone Java application, then Camel provides a <tt>Main</tt>
class you can reuse to more easily boot up Camel and keep it running until the JVM terminates,
for example when pressing <tt>ctrl + c</tt>.</p>

<p>The <tt>Main</tt> class is provided in the following two components</p>
<ul class="alternate" type="square">
	<li><tt>camel-core</tt> JAR in the <tt>org.apache.camel.Main</tt>
class (requires Camel 2.6)</li>
	<li><tt>camel-spring</tt> JAR in the <tt>org.apache.camel.spring.Main</tt>
class</li>
</ul>


<h3><a name="RunningCamelstandaloneandhaveitkeeprunning-Using%7B%7Bcamelcore%7D%7DJARexample"></a>Using
<tt>camel-core</tt> JAR example</h3>
<p><b>Available as of Camel 2.6</b></p>

<p>The following example shows how you can create your main class, named <tt>MainExample</tt>
and use the <tt>Main</tt> class from Camel.</p>

<p>TODO: e1</p>

<h3><a name="RunningCamelstandaloneandhaveitkeeprunning-Using%7B%7Bcamelspring%7D%7DJARexample"></a>Using
<tt>camel-spring</tt> JAR example</h3>

<p>TODO: refer to other examples</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/Running+Camel+standalone+and+have+it+keep+running">View
Online</a>
              |
       <a href="https://cwiki.apache.org/confluence/display/CAMEL/Running+Camel+standalone+and+have+it+keep+running?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message