camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Camel > Running Camel standalone and have it keep running
Date Sun, 09 Jan 2011 11:18: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="">Running
Camel standalone and have it keep running</a></h2>
    <h4>Page  <b>added</b> by             <a href="">Claus
    <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>

<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 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