Author: buildbot
Date: Thu Feb 19 15:18:13 2015
New Revision: 940756

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/kura.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/kura.html
==============================================================================
--- websites/production/camel/content/kura.html (original)
+++ websites/production/camel/content/kura.html Thu Feb 19 15:18:13 2015
@@ -85,13 +85,13 @@
        <tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 
id="Kura-EclipseKuracomponent">Eclipse Kura component</h2><p><span 
style="line-height: 1.5625;font-size: 16.0px;">This documentation page covers 
the integration options of Camel with the <a shape="rect" class="external-link" 
href="https://eclipse.org/kura/"; rel="nofollow">Eclipse Kura</a> M2M 
gateway.</span></p>    <div class="aui-message hint shadowed information-macro">
+<div class="wiki-content maincontent"><h2 
id="Kura-EclipseKuracomponent">Eclipse Kura component</h2><p><span 
style="line-height: 1.5625;font-size: 16.0px;">This documentation page covers 
the integration options of Camel with the <a shape="rect" class="external-link" 
href="https://eclipse.org/kura/"; rel="nofollow">Eclipse Kura</a> M2M gateway. 
The common reason to deploy Camel routes into the Apache Kura is to provide 
enterprise integration patterns and Camel components to the messaging M2M 
gateway. For example you might want to install Kura on <span>Raspberry PI, 
then</span>&#160;read temperature from the sensor attached to that Raspberry PI 
using Kura services and finally forward the current temperature value to your 
data center service using Camel EIP and components.</span></p>    <div 
class="aui-message hint shadowed information-macro">
                             <span class="aui-icon icon-hint">Icon</span>
                 <div class="message-content">
                             <p>&#160;Kura component is available starting from 
Camel <strong>2.15</strong>.</p>
                     </div>
     </div>
-<h3 id="Kura-KuraRouteractivator"><span style="line-height: 1.5625;font-size: 
16.0px;">KuraRouter activator</span></h3><p>The easiest way to deploy Apache 
Camel routes into the Kura is to create an OSGi bundle containing the class 
extending <code>org.apache.camel.kura.KuraRouter</code> class:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
+<h3 id="Kura-KuraRouteractivator"><span style="line-height: 1.5625;font-size: 
16.0px;">KuraRouter activator</span></h3><p>Bundles deployed to the Apache Kura 
are usually <a shape="rect" class="external-link" 
href="http://eclipse.github.io/kura/doc/hello-example.html#create-java-class"; 
rel="nofollow">developed as bundle activators</a>. So the easiest way to deploy 
Apache Camel routes into the Kura is to create an OSGi bundle containing the 
class extending <code>org.apache.camel.kura.KuraRouter</code> class:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[public class MyKuraRouter extends KuraRouter {
 
   @Override
@@ -101,7 +101,7 @@
   }
 
 }]]></script>
-</div></div><p>Kura router starts its own OSGi-aware 
<code>CamelContext</code>. It means that for every class extending 
<code>KuraRouter</code>, there will be a dedicated <code>CamelContext</code> 
instance. Ideally we recommend to deploy one <code>KuraRouter</code> per OSGi 
bundle. Keep in mind that KuraRouter implements the 
<code>org.osgi.framework.BundleActivator</code> interface, so you need to 
register its <code>start</code> and <code>stop</code> lifecycle methods while 
<a shape="rect" class="external-link" 
href="http://eclipse.github.io/kura/doc/hello-example.html#create-component-class";
 rel="nofollow">creating Kura bundle component class</a>.</p><h3 
id="Kura-DeployingKuraRouter">Deploying KuraRouter</h3><p>Bundle containing 
your Kura router class should import the following packages in the OSGi 
manifest:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><p>Keep in mind that KuraRouter implements 
the&#160;<code>org.osgi.framework.BundleActivator</code>&#160;interface, so you 
need to register 
its&#160;<code>start</code>&#160;and&#160;<code>stop</code>&#160;lifecycle 
methods while&#160;<a shape="rect" class="external-link" 
href="http://eclipse.github.io/kura/doc/hello-example.html#create-component-class";
 rel="nofollow">creating Kura bundle component class</a>.</p><p>Kura router 
starts its own OSGi-aware <code>CamelContext</code>. It means that for every 
class extending <code>KuraRouter</code>, there will be a dedicated 
<code>CamelContext</code> instance. Ideally we recommend to deploy one 
<code>KuraRouter</code> per OSGi bundle.</p><h3 
id="Kura-DeployingKuraRouter">Deploying KuraRouter</h3><p>Bundle containing 
your Kura router class should import the following packages in the OSGi 
manifest:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[Import-Package: 
org.osgi.framework;version=&quot;1.3.0&quot;,
   org.slf4j;version=&quot;1.6.4&quot;,
   
org.apache.camel,org.apache.camel.impl,org.apache.camel.core.osgi,org.apache.camel.builder,org.apache.camel.model,
@@ -114,12 +114,12 @@ start &lt;camel-core-osgi-bundle-id&gt;
 install 
file:///home/user/.m2/repository/org/apache/camel/camel-kura/2.15.0/camel-kura-2.15.0.jar
 
 start &lt;camel-kura-bundle-id&gt;]]></script>
 </div></div><p>...and all the components you plan to use in your 
routes:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[install 
file:///home/user/.m2/repository/org/apache/camel/camel-stream/2.15/camel-stream-2.15.jar
-start &lt;camel-kura-bundle-id&gt;]]></script>
+<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[install 
file:///home/user/.m2/repository/org/apache/camel/camel-stream/2.15.0/camel-stream-2.15.0.jar
+start &lt;camel-stream-bundle-id&gt;]]></script>
 </div></div><p>Then finally deploy your router bundle:</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[install 
file:///home/user/.m2/repository/com/example/myrouter/1.0/myrouter-1.0.jar
 start &lt;your-bundle-id&gt;]]></script>
-</div></div><h3 id="Kura-KuraRouterutilities">KuraRouter utilities<span 
style="font-size: 14.0px;line-height: 1.4285715;">&#160;</span></h3><p><span 
style="font-size: 14.0px;line-height: 1.4285715;">&#160;</span><span 
style="line-height: 1.5625;">Kura router base class provides many useful 
utilities. This section explores each of those.</span></p><h4 
id="Kura-SLF4Jlogger"><span style="line-height: 1.5625;">SLF4J 
logger</span></h4><p><span style="line-height: 1.5625;">Kura uses SLF4J facade 
for logging purposes. Protected member <code>log</code> returns SLF4J logger 
instance associated with the given Kura router.</span></p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><h3 id="Kura-KuraRouterutilities">KuraRouter utilities<span 
style="font-size: 14.0px;line-height: 1.4285715;">&#160;</span></h3><p><span 
style="font-size: 14.0px;line-height: 1.4285715;">&#160;</span><span 
style="line-height: 1.5625;">Kura router base class provides many useful 
utilities. This section explores each of them.</span></p><h4 
id="Kura-SLF4Jlogger"><span style="line-height: 1.5625;">SLF4J 
logger</span></h4><p><span style="line-height: 1.5625;">Kura uses SLF4J facade 
for logging purposes. Protected member <code>log</code> returns SLF4J logger 
instance associated with the given Kura router.</span></p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[public class MyKuraRouter extends KuraRouter {
 
     @Override


Reply via email to