You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2015/11/23 11:19:57 UTC

svn commit: r973311 - in /websites/production/camel/content: cache/main.pageCache kura.html

Author: buildbot
Date: Mon Nov 23 10:19:57 2015
New Revision: 973311

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 Mon Nov 23 10:19:57 2015
@@ -85,7 +85,7 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="Kura-EclipseKuracomponent">Eclipse Kura component</h2><div class="confluence-information-macro confluence-information-macro-information"><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>&#160;Kura component is available starting from Camel <strong>2.15</strong>.</p></div></div><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><p><span style="line-height: 1.5625;font-size: 16.0px;"><span class="confluence-embedded-file-wrapper image-center-wrapper"><img class="confluence-embedded-image image-center" src="kura.data/fabric_docker%20%282%29.png" data-image-src="/confluence/download/attachments/51811447/fabric_docker%20%282%29.png?version=1&amp;modificationDate=1425039313000&amp;api=v2" data-unresolved-comment-count="0" data-linked-resource-id="52036148" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="fabric_docker (2).png" data-base-url="https://cwiki.apache.org/confluence" data-linked-resource-content-type="image/png" data-linked-resource-container-id="51811447" data-linked-resource-container-version="25"></span><br clear="none"><br clear="none"></span></p><h3 id="Kura-KuraRouteractivator"><span style="line-height: 1.5625;font-size: 1
 6.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">
+<div class="wiki-content maincontent"><h2 id="Kura-EclipseKuracomponent">Eclipse Kura component</h2><div class="confluence-information-macro confluence-information-macro-information"><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>&#160;Kura component is available starting from Camel <strong>2.15</strong>.</p></div></div><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><p><span style="line-height: 1.5625;font-size: 16.0px;"><span class="confluence-embedded-file-wrapper image-center-wrapper"><img class="confluence-embedded-image image-center" src="kura.data/fabric_docker%20%282%29.png" data-image-src="/confluence/download/attachments/51811447/fabric_docker%20%282%29.png?version=1&amp;modificationDate=1425039313000&amp;api=v2" data-unresolved-comment-count="0" data-linked-resource-id="52036148" data-linked-resource-version="1" data-linked-resource-type="attachment" data-linked-resource-default-alias="fabric_docker (2).png" data-base-url="https://cwiki.apache.org/confluence" data-linked-resource-content-type="image/png" data-linked-resource-container-id="51811447" data-linked-resource-container-version="26"></span><br clear="none"><br clear="none"></span></p><h3 id="Kura-KuraRouteractivator"><span style="line-height: 1.5625;font-size: 1
 6.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="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[public class MyKuraRouter extends KuraRouter {
 
   @Override
@@ -202,7 +202,11 @@ start &lt;your-bundle-id&gt;]]></script>
         &lt;to uri=&quot;mock:bar&quot;/&gt;
     &lt;/route&gt;
 &lt;/routes&gt;]]></script>
-</div></div><p>&#160;</p><p>&#160;</p><p></p><h3 id="Kura-SeeAlso">See Also</h3>
+</div></div><p>&#160;</p><h3 id="Kura-DeployingKurarouterasadeclarativeOSGiservice">Deploying Kura router as a declarative OSGi service</h3><p>If you would like to deploy your Kura router as a declarative OSGi service, you can use <code>activate</code> and <code>deactivate</code> methods provided by <code>KuraRouter</code>.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;scr:component name=&quot;org.eclipse.kura.example.camel.MyKuraRouter&quot; activate=&quot;activate&quot; deactivate=&quot;deactivate&quot; enabled=&quot;true&quot; immediate=&quot;true&quot;&gt;
+  &lt;implementation class=&quot;org.eclipse.kura.example.camel.MyKuraRouter&quot;/&gt;
+&lt;/scr:component&gt;]]></script>
+</div></div><p></p><h3 id="Kura-SeeAlso">See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring Camel</a></li><li><a shape="rect" href="component.html">Component</a></li><li><a shape="rect" href="endpoint.html">Endpoint</a></li><li><a shape="rect" href="getting-started.html">Getting Started</a></li></ul></div>
         </td>
         <td valign="top">