camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r941373 - in /websites/production/camel/content: cache/main.pageCache kura.html
Date Tue, 24 Feb 2015 20:18:14 GMT
Author: buildbot
Date: Tue Feb 24 20:18:14 2015
New Revision: 941373

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 Tue Feb 24 20:18:14 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. 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">
+<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 Eclipse 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>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">
+<h3 id="Kura-KuraRouteractivator"><span style="line-height: 1.5625;font-size: 16.0px;">KuraRouter
activator</span></h3><p>Bundles deployed to the Eclipse&#160;Kura&#160;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>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">
+</div></div><p>Keep in mind that <code>KuraRouter</code> 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,



Mime
View raw message