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/03/19 23:19:36 UTC

svn commit: r944383 - in /websites/production/camel/content: cache/main.pageCache paho.html

Author: buildbot
Date: Thu Mar 19 22:19:35 2015
New Revision: 944383

Log:
Production update by buildbot for camel

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

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

Modified: websites/production/camel/content/paho.html
==============================================================================
--- websites/production/camel/content/paho.html (original)
+++ websites/production/camel/content/paho.html Thu Mar 19 22:19:35 2015
@@ -135,7 +135,7 @@ String payload = consumerTemplate.receiv
 // Send payload
 String payload = "message";
 producerTemplate.sendBody(&quot;paho:topic&quot;, payload);]]></script>
-</div></div><p><span style="line-height: 1.4285715;"><br clear="none"></span></p><h3 id="Paho-URIOptions">URI Options</h3><div class="confluenceTableSmall"><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>clientId</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>camel-&lt;timestamp&gt;</code></td><td colspan="1" rowspan="1" class="confluenceTd">MQTT client identifier.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>brokerUrl</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>tcp://localhost:1883</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The URL of the MQTT broker.</p></td></tr><tr><td colspan="1" rowspan="1" class=
 "confluenceTd"><code>persistence</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>memory</code></td><td colspan="1" rowspan="1" class="confluenceTd">Client persistence to be used - <code>memory</code> or <code>file</code>.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>qos</code></td><td colspan="1" rowspan="1" class="confluenceTd">2</td><td colspan="1" rowspan="1" class="confluenceTd">Client quality of service level (<code>0</code>-<code>2</code>).</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>connectOptions</code></td><td colspan="1" rowspan="1" class="confluenceTd">none</td><td colspan="1" rowspan="1" class="confluenceTd">The reference to the <code><span style="line-height: 1.4285715;">org</span><span style="line-height: 1.4285715;">.eclipse.paho.client.mqttv3.</span><code style="line-height: 1.4285715;">MqttConnectOptions</code></code><span style="line-height: 1.4285715;"> instance located in the Camel registry. Referen
 ced </span><code>MqttConnectOptions</code> instance <span style="line-height: 1.4285715;">will be used by the endpoint to initialize the connection. For example <code>connectOptions=#my</code><span><code>ConnectOptions</code></span> notation can be used to reference Spring bean named <code>my</code><span><code>ConnectOptions.</code></span></span></td></tr></tbody></table></div></div><p>For example&#160;<span style="line-height: 1.4285715;">the convention-over-configuration approach used in Camel is really handy for the most of the situations, but sometimes you would like to have more fine-grained control over the MQTT client connection. To cover such situations just add the bean of type <code>org.eclipse.paho.client.mqttv3.MqttConnectOptions</code> named <code>connectOptions</code> to your <a shape="rect" href="registry.html">Camel registry</a>. For Spring applications that would means adding bean to your application context. The snippet below uses password-based authentication to c
 onnect to the MQTT broker:</span></p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p><span style="line-height: 1.4285715;"><br clear="none"></span></p><h3 id="Paho-URIOptions">URI Options</h3><div class="confluenceTableSmall"><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>clientId</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>camel-&lt;timestamp&gt;</code></td><td colspan="1" rowspan="1" class="confluenceTd">MQTT client identifier.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>brokerUrl</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>tcp://localhost:1883</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The URL of the MQTT broker.</p></td></tr><tr><td colspan="1" rowspan="1" class=
 "confluenceTd"><code>persistence</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>memory</code></td><td colspan="1" rowspan="1" class="confluenceTd">Client persistence to be used - <code>memory</code> or <code>file</code>.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>qos</code></td><td colspan="1" rowspan="1" class="confluenceTd">2</td><td colspan="1" rowspan="1" class="confluenceTd">Client quality of service level (<code>0</code>-<code>2</code>).</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>connectOptions</code></td><td colspan="1" rowspan="1" class="confluenceTd">none</td><td colspan="1" rowspan="1" class="confluenceTd">The reference to the <code><span style="line-height: 1.4285715;">org</span><span style="line-height: 1.4285715;">.eclipse.paho.client.mqttv3.</span><code style="line-height: 1.4285715;">MqttConnectOptions</code></code><span style="line-height: 1.4285715;"> instance located in the Camel registry. Referen
 ced </span><code>MqttConnectOptions</code> instance <span style="line-height: 1.4285715;">will be used by the endpoint to initialize the connection. For example <code>connectOptions=#my</code><span><code>ConnectOptions</code></span> notation can be used to reference Spring bean named <code>my</code></span>ConnectOptions. If there is only a single instance of the <code>MqttConnectOptions</code> in the registry, it will be automatically picked up by the endpoint.</td></tr></tbody></table></div></div><p>For example&#160;<span style="line-height: 1.4285715;">the convention-over-configuration approach used in Camel is really handy for the most of the situations, but sometimes you would like to have more fine-grained control over the MQTT client connection. To cover such situations just add the bean of type <code>org.eclipse.paho.client.mqttv3.MqttConnectOptions</code>&#160;to your <a shape="rect" href="registry.html">Camel registry</a>. For Spring applications that would means adding bea
 n to your application context. The snippet below uses password-based authentication to connect to the MQTT broker:</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[@Bean
 MqttConnectOptions connectOptions() {
   MqttConnectOptions connectOptions = new MqttConnectOptions();